mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-06 04:38:07 +02:00
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
This commit is contained in:
parent
d42d167cc3
commit
0662985ab7
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue