Daniel P. Berrangé
67966ad518
m4: enforce that all enum cases are listed in switch statements
...
As a general rule any time we switch() on something that is an enum, we
want to have a case for every enum constant. The -Wswitch warning will
report any switch where we've violated this rule, except if that switch
has a default case.
Unfortunately it is reasonable to want to list all enum constants *and*
also have a default case. To get a warning in that scenario requires
that we turn on -Wswitch-enum.
In a few cases where we explicitly don't want to list all enum cases, we
can discard the enum type checking by casting the value to a plain int.
Reviewed-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2018-02-21 16:59:48 +00:00
..
2017-05-26 11:37:44 +02:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-21 15:39:38 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2018-01-12 10:43:30 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-02-09 13:29:53 +01:00
2018-02-21 16:59:48 +00:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-21 15:39:40 +01:00
2016-12-22 15:20:05 +01:00
2016-12-21 15:39:39 +01:00
2016-12-21 15:39:38 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2018-01-25 09:30:54 +00:00
2016-12-22 15:20:05 +01:00
2017-07-27 12:00:35 +02:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2017-08-02 17:00:11 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-21 15:39:39 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2013-08-22 16:17:36 +02:00
2018-02-09 11:05:10 +00:00
2013-08-22 16:17:35 +02:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2017-07-10 10:00:43 +02:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-21 15:39:39 +01:00
2016-12-22 15:20:05 +01:00
2016-12-21 15:39:40 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-21 15:39:38 +01:00
2018-01-15 17:59:26 +01:00
2013-01-11 11:03:22 +00:00
2017-04-27 11:44:11 +02:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2017-04-19 15:01:17 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2017-01-27 10:37:56 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00
2017-01-24 17:24:14 +01:00
2017-05-31 13:28:24 +02:00
2016-12-22 15:20:05 +01:00
2016-12-21 15:39:39 +01:00
2016-12-21 15:39:39 +01:00
2016-12-21 15:39:39 +01:00
2016-12-21 15:39:39 +01:00
2016-12-21 15:39:39 +01:00
2016-12-22 15:20:05 +01:00
2016-12-21 15:39:38 +01:00
2016-12-22 15:20:05 +01:00
2016-12-22 15:20:05 +01:00