summaryrefslogtreecommitdiff
path: root/bus/config-parser-common.c
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2016-10-13 23:09:34 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2017-01-17 17:20:53 +0000
commit21eb3317c569cfd02d799aa67ae3ecf611373cab (patch)
tree01553d0e8c3fa700ae7d3dd5a80e8b6c8e55b756 /bus/config-parser-common.c
parent81a99b483349313db44d3add31269a424fec1b9b (diff)
downloaddbus-21eb3317c569cfd02d799aa67ae3ecf611373cab.tar.gz
Move defaults for some switches into a default case
This is clearly equivalent, and quiets -Wswitch-default. Based on part of a patch by Thomas Zimmermann. Signed-off-by: Simon McVittie <smcv@debian.org> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98191
Diffstat (limited to 'bus/config-parser-common.c')
-rw-r--r--bus/config-parser-common.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/bus/config-parser-common.c b/bus/config-parser-common.c
index 5db6b289..c1c4191b 100644
--- a/bus/config-parser-common.c
+++ b/bus/config-parser-common.c
@@ -187,10 +187,9 @@ bus_config_parser_element_type_to_name (ElementType type)
return "allow_anonymous";
case ELEMENT_APPARMOR:
return "apparmor";
+ default:
+ _dbus_assert_not_reached ("bad element type");
+ return NULL;
}
-
- _dbus_assert_not_reached ("bad element type");
-
- return NULL;
}