diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2017-01-17 20:58:06 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2017-04-07 12:08:23 +0100 |
commit | 0662985ab72d3eb0a7d4f5c7a0ffb755e91e6810 (patch) | |
tree | d19dab5234e575d9dedb5f3c53fc27551e59446f | |
parent | d42d167cc3ba0d20aa891a75aa1cd80ec5f490f1 (diff) |
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 <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98191
-rw-r--r-- | bus/config-parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |