[igt-dev] [PATCH i-g-t 1/2] meson: Drop -Wdeclaration-after-statement.

Eric Anholt eric at anholt.net
Tue Nov 27 20:46:02 UTC 2018


Being able to move declarations later is very useful in making clear,
concise code.

Signed-off-by: Eric Anholt <eric at anholt.net>
---
 meson.build | 1 -
 1 file changed, 1 deletion(-)

diff --git a/meson.build b/meson.build
index 469723dc4633..c5aab78716d5 100644
--- a/meson.build
+++ b/meson.build
@@ -11,7 +11,6 @@ cc = meson.get_compiler('c')
 
 cc_args = [
 	'-Wbad-function-cast',
-	'-Wdeclaration-after-statement',
 	'-Wformat=2',
 # igt_assert(0) in switch statements triggers a bunch of this.
 	'-Wimplicit-fallthrough=0',
-- 
2.20.0.rc1



More information about the igt-dev mailing list