meson: turn on Wimplicit-fallthrough project wide
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 1 Jul 2020 03:37:14 +0000 (13:37 +1000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Jul 2020 23:52:53 +0000 (23:52 +0000)
This will help avoid coding errors and allows for less warnings
from some static analysis tools.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5705>

meson.build

index 7d0373f375377a64aad93d6f8b33317a73c0e2b3..043047ddbea102bdc1c8ec089d552c9dd815477c 100644 (file)
@@ -991,6 +991,7 @@ else
     '-Werror=empty-body',
     '-Werror=incompatible-pointer-types',
     '-Werror=int-conversion',
+    '-Wimplicit-fallthrough',
     '-Wno-missing-field-initializers',
     '-Wno-format-truncation',
     '-fno-math-errno',