log, pcm_convert: added return statements after g_error()
gcc doesn't know that g_error() never returns. Work around the gcc warning.
This commit is contained in:
parent
2151e2ea53
commit
29baf0c190
@ -210,9 +210,11 @@ parse_log_level(const char *value, unsigned line)
|
|||||||
return LOG_LEVEL_SECURE;
|
return LOG_LEVEL_SECURE;
|
||||||
else if (0 == strcmp(value, "verbose"))
|
else if (0 == strcmp(value, "verbose"))
|
||||||
return G_LOG_LEVEL_DEBUG;
|
return G_LOG_LEVEL_DEBUG;
|
||||||
else
|
else {
|
||||||
g_error("unknown log level \"%s\" at line %u\n",
|
g_error("unknown log level \"%s\" at line %u\n",
|
||||||
value, line);
|
value, line);
|
||||||
|
return G_LOG_LEVEL_MESSAGE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void log_init(bool verbose, bool use_stdout)
|
void log_init(bool verbose, bool use_stdout)
|
||||||
|
@ -145,6 +145,7 @@ size_t pcm_convert(const struct audio_format *inFormat,
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
g_error("cannot convert to %u bit\n", outFormat->bits);
|
g_error("cannot convert to %u bit\n", outFormat->bits);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user