scons: Make GCC builds stricter.
authorJose Fonseca <jfonseca@vmware.com>
Tue, 27 Aug 2019 10:54:31 +0000 (11:54 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Wed, 28 Aug 2019 14:52:07 +0000 (15:52 +0100)
Uses some of the same -Werror options used by Meson, as suggested by
Michel Dänzer.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Michel Dänzer <michel@daenzer.net>
Acked-by: Eric Engestrom <eric@engestrom.ch>
scons/gallium.py

index 79b9406a975ba8362e6eaf73a71852218737bf72..72d8604169e13eef20028b13c3f1f03d0f5f2c22 100755 (executable)
@@ -481,7 +481,10 @@ def generate(env):
             '-fmessage-length=0', # be nice to Eclipse
         ]
         cflags += [
-            '-Wmissing-prototypes',
+            '-Werror=implicit-function-declaration',
+            '-Werror=missing-prototypes',
+            '-Werror=return-type',
+            '-Werror=incompatible-pointer-types',
             '-std=gnu99',
         ]
     if icc: