From eb1a36f3333a95c5de0099c0c2df2048e61ee3a5 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 17 Jan 2017 20:58:06 +0000 Subject: [PATCH 12/16] 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 --- bus/config-parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bus/config-parser.c b/bus/config-parser.c index 74a6a6d3..492cbc28 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; -- 2.11.0