From: Simon McVittie Date: Tue, 17 Jan 2017 20:58:06 +0000 (+0000) Subject: config-parser: treat impossible policy type as IGNORED X-Git-Tag: dbus-1.11.12~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0662985ab72d3eb0a7d4f5c7a0ffb755e91e6810;p=thirdparty%2Fdbus.git config-parser: treat impossible policy type as IGNORED This silences -Wswitch-default. Based on part of a patch from Thomas Zimmermann. Signed-off-by: Simon McVittie Reviewed-by: Philip Withnall Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98191 --- diff --git a/bus/config-parser.c b/bus/config-parser.c index 74a6a6d34..492cbc282 100644 --- a/bus/config-parser.c +++ b/bus/config-parser.c @@ -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;