mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
meson: enable some more warnings
Fix some warnings
This commit is contained in:
parent
c4ca245b24
commit
4660e16d5b
3 changed files with 4 additions and 2 deletions
|
|
@ -77,10 +77,12 @@ common_flags = [
|
||||||
'-Wmissing-braces',
|
'-Wmissing-braces',
|
||||||
'-Wtype-limits',
|
'-Wtype-limits',
|
||||||
'-Wvariadic-macros',
|
'-Wvariadic-macros',
|
||||||
|
'-Wmaybe-uninitialized',
|
||||||
'-Wno-missing-field-initializers',
|
'-Wno-missing-field-initializers',
|
||||||
'-Wno-unused-parameter',
|
'-Wno-unused-parameter',
|
||||||
'-Wno-pedantic',
|
'-Wno-pedantic',
|
||||||
'-Wold-style-declaration',
|
'-Wold-style-declaration',
|
||||||
|
'-Wdeprecated-declarations',
|
||||||
'-Wunused-result',
|
'-Wunused-result',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -184,7 +184,7 @@ static void unescape(const char *src, char *dst)
|
||||||
{
|
{
|
||||||
const char *s;
|
const char *s;
|
||||||
char *d;
|
char *d;
|
||||||
int h1, h2;
|
int h1 = 0, h2 = 0;
|
||||||
enum { TEXT, BACKSLASH, EX, FIRST } state = TEXT;
|
enum { TEXT, BACKSLASH, EX, FIRST } state = TEXT;
|
||||||
|
|
||||||
for (s = src, d = dst; *s; s++) {
|
for (s = src, d = dst; *s; s++) {
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,7 @@ static void unescape(const char *src, char *dst)
|
||||||
{
|
{
|
||||||
const char *s;
|
const char *s;
|
||||||
char *d;
|
char *d;
|
||||||
int h1, h2;
|
int h1 = 0, h2 = 0;
|
||||||
enum { TEXT, BACKSLASH, EX, FIRST } state = TEXT;
|
enum { TEXT, BACKSLASH, EX, FIRST } state = TEXT;
|
||||||
|
|
||||||
for (s = src, d = dst; *s; s++) {
|
for (s = src, d = dst; *s; s++) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue