From 35c1ffb611b603a9550f596f719582f18a1706c1 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 01 Nov 2017 17:25:42 -0400 Subject: MqConfig: Add default cases to switches Fixes: CC src/config/marquee-config.o src/config/config.c: In function ‘set_type_or_run_callbacks’: src/config/config.c:332:4: warning: switch missing default case [-Wswitch-default] switch (item->type) { ^ src/config/config.c: In function ‘mq_config_set’: src/config/config.c:429:2: warning: switch missing default case [-Wswitch-default] switch (item->type) { ^ --- (limited to 'src') diff --git a/src/config/config.c b/src/config/config.c index 8b46fb1..ce992f4 100644 --- a/src/config/config.c +++ b/src/config/config.c @@ -350,6 +350,9 @@ set_type_or_run_callbacks(MqConfig *config, const gchar *name, (const gchar *) value, cbs->user_data); break; + default: + g_assert_not_reached(); + break; } } } @@ -450,6 +453,9 @@ mq_config_set(MqConfig *config, const gchar *name, const gchar *value) case TYPE_STRING: mq_config_set_string(config, name, value); return TRUE; + default: + g_assert_not_reached(); + break; } g_assert_not_reached(); -- cgit v0.9.1