diff options
author | Adrian Szyndela <adrian.s@samsung.com> | 2020-05-20 14:29:17 +0200 |
---|---|---|
committer | Adrian Szyndela <adrian.s@samsung.com> | 2020-06-01 11:59:55 +0200 |
commit | bf80b7127be0a70640cfb4cf14a1f53daf212997 (patch) | |
tree | 42b40d197c815f8c64aa25f002cc2cc10c668fbe | |
parent | e944c4eb3721bc43f18d475d3bf1b4a9e7bab28c (diff) | |
download | dbus-bf80b7127be0a70640cfb4cf14a1f53daf212997.tar.gz dbus-bf80b7127be0a70640cfb4cf14a1f53daf212997.tar.bz2 dbus-bf80b7127be0a70640cfb4cf14a1f53daf212997.zip |
bus/policy: reduce warnings by adding default cases
Change-Id: I6267b3c7cc6fead8c4dd37967c122e1597239ebf
-rw-r--r-- | bus/policy.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bus/policy.c b/bus/policy.c index 0ba2732d..6eb52f25 100644 --- a/bus/policy.c +++ b/bus/policy.c @@ -807,6 +807,8 @@ bus_policy_rule_to_string (BusPolicyRule *rule, case BUS_POLICY_RULE_ACCESS_CHECK: access = "check"; break; + default: + _dbus_assert_not_reached ("invalid rule access value"); } if (rule->type == BUS_POLICY_RULE_SEND) @@ -1111,6 +1113,8 @@ check_send_rule (const BusPolicyRule *rule, *result = BUS_RESULT_LATER; *privilege = rule->privilege; break; + default: + _dbus_assert_not_reached ("invalid rule access value"); } return TRUE; @@ -1391,6 +1395,8 @@ check_receive_rule (const BusPolicyRule *rule, *result = BUS_RESULT_LATER; *privilege = rule->privilege; break; + default: + _dbus_assert_not_reached ("invalid rule access value"); } return TRUE; @@ -1518,6 +1524,8 @@ check_own_rule (const BusPolicyRule *rule, *result = BUS_RESULT_LATER; *privilege = rule->privilege; break; + default: + _dbus_assert_not_reached ("invalid rule access value"); } return TRUE; |