Mesa (master): meson: turn on Wimplicit-fallthrough project wide

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jul 3 00:33:04 UTC 2020


Module: Mesa
Branch: master
Commit: e2209e869a5560cb12de040aa5f9db4a305111e8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e2209e869a5560cb12de040aa5f9db4a305111e8

Author: Timothy Arceri <tarceri at itsqueeze.com>
Date:   Wed Jul  1 13:37:14 2020 +1000

meson: turn on Wimplicit-fallthrough project wide

This will help avoid coding errors and allows for less warnings
from some static analysis tools.

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

---

 meson.build | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meson.build b/meson.build
index 7d0373f3753..043047ddbea 100644
--- a/meson.build
+++ b/meson.build
@@ -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',



More information about the mesa-commit mailing list