meson: Add -Wswitch-enum

This would have caught the issue where we forgot to add
FPI_DEVICE_ACTION_CLEAR_STORAGE to fpi_device_action_error.
This commit is contained in:
Benjamin Berg 2021-04-29 14:16:29 +02:00 committed by Benjamin Berg
parent e9dddcc87a
commit 261ba3a4a4

View file

@ -33,6 +33,7 @@ common_cflags = cc.get_supported_arguments([
'-Wmissing-noreturn', '-Wmissing-noreturn',
'-Wpointer-arith', '-Wpointer-arith',
'-Wshadow', '-Wshadow',
'-Wswitch-enum',
'-Wtype-limits', '-Wtype-limits',
'-Wundef', '-Wundef',
'-Wunused', '-Wunused',