diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-11-20 16:03:09 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-30 11:59:14 +0100 |
commit | b024381be57f3ef07c1ef067c0816a52d267fa8f (patch) | |
tree | 316de3a6c81a882cd7a7afad583e631bffcfa61c /src/mm-log.c | |
parent | a1f2429790eb4c7e106cd928cbb387fd5ba0aa46 (diff) |
core,log: fix warnings with -Wswitch-default
mm-log.c: In function ‘mm_to_syslog_priority’:
mm-log.c:82:5: warning: switch missing default case [-Wswitch-default]
82 | switch (level) {
| ^~~~~~
mm-log.c: In function ‘log_level_description’:
mm-log.c:118:5: warning: switch missing default case [-Wswitch-default]
118 | switch (level) {
| ^~~~~~
Diffstat (limited to 'src/mm-log.c')
-rw-r--r-- | src/mm-log.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mm-log.c b/src/mm-log.c index 83c58235..49a2b943 100644 --- a/src/mm-log.c +++ b/src/mm-log.c @@ -88,6 +88,8 @@ mm_to_syslog_priority (MMLogLevel level) return LOG_INFO; case MM_LOG_LEVEL_ERR: return LOG_ERR; + default: + break; } g_assert_not_reached (); return 0; @@ -124,6 +126,8 @@ log_level_description (MMLogLevel level) return "<info> "; case MM_LOG_LEVEL_ERR: return "<error>"; + default: + break; } g_assert_not_reached (); return NULL; |