]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
config-parser: treat impossible policy type as IGNORED
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 17 Jan 2017 20:58:06 +0000 (20:58 +0000)
committerSimon McVittie <smcv@collabora.com>
Fri, 7 Apr 2017 11:08:23 +0000 (12:08 +0100)
This silences -Wswitch-default.

Based on part of a patch from Thomas Zimmermann.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98191

bus/config-parser.c

index 74a6a6d341193df4d8975dd11527d25e8bcec09a..492cbc282958339fcc3a7fa66256db6a90c3a1d5 100644 (file)
@@ -1741,6 +1741,7 @@ append_rule_from_element (BusConfigParser   *parser,
       switch (pe->d.policy.type)
         {
         case POLICY_IGNORED:
+        default:
           /* drop the rule on the floor */
           break;