diff options
author | Max Kellermann <max@duempel.org> | 2009-01-15 09:17:06 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-15 09:17:06 +0100 |
commit | 29baf0c190e9f5e2ccbd98cb8aa300ea91b194cd (patch) | |
tree | 811025ab9cd21bb0e97cbfd2b50564d8d20ded5c /src/log.c | |
parent | 2151e2ea53d124af100c573024d8e1626c8d4390 (diff) | |
download | mpd-29baf0c190e9f5e2ccbd98cb8aa300ea91b194cd.tar.gz mpd-29baf0c190e9f5e2ccbd98cb8aa300ea91b194cd.tar.xz mpd-29baf0c190e9f5e2ccbd98cb8aa300ea91b194cd.zip |
log, pcm_convert: added return statements after g_error()
gcc doesn't know that g_error() never returns. Work around the gcc
warning.
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -210,9 +210,11 @@ parse_log_level(const char *value, unsigned line) return LOG_LEVEL_SECURE; else if (0 == strcmp(value, "verbose")) return G_LOG_LEVEL_DEBUG; - else + else { g_error("unknown log level \"%s\" at line %u\n", value, line); + return G_LOG_LEVEL_MESSAGE; + } } void log_init(bool verbose, bool use_stdout) |