diff options
author | Benjamin Berg <bberg@redhat.com> | 2019-06-14 15:59:45 +0200 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2019-06-14 15:09:37 +0100 |
commit | 81b47d56c66910e82dbbab6b23bf5fcc5fa5b441 (patch) | |
tree | e33d52873565d4d256ddce3faf0b8315391d1024 | |
parent | f33be86e563217d525e31b501c9eaa52f9db1cc4 (diff) | |
download | gusb-81b47d56c66910e82dbbab6b23bf5fcc5fa5b441.tar.gz |
build: Add -Wswitch-enum
This means we still get errors for missing enum values in switches even
in combination with -Wswitch-default and default cases.
-rw-r--r-- | meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meson.build b/meson.build index cc6ea64..44330b3 100644 --- a/meson.build +++ b/meson.build @@ -59,6 +59,7 @@ test_args = [ '-Wstrict-aliasing', '-Wstrict-prototypes', '-Wswitch-default', + '-Wswitch-enum', '-Wtype-limits', '-Wundef', '-Wuninitialized', |