summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-01 17:25:42 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-11-01 17:25:42 (EDT)
commit35c1ffb611b603a9550f596f719582f18a1706c1 (patch)
tree4a7d45c50ae2d5514260550001e2ae0d22bfa328 /src/config
parent782cec9ec57aa733c37179417213eec35bb4eb0f (diff)
downloadmarquee-35c1ffb611b603a9550f596f719582f18a1706c1.zip
marquee-35c1ffb611b603a9550f596f719582f18a1706c1.tar.gz
marquee-35c1ffb611b603a9550f596f719582f18a1706c1.tar.bz2
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) { ^
Diffstat (limited to 'src/config')
-rw-r--r--src/config/config.c6
1 files changed, 6 insertions, 0 deletions
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();