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

Eric Anholt eric at anholt.net
Thu Nov 15 18:57:33 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.19.1



More information about the igt-dev mailing list