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 7d0373f..043047d 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',