summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2019-08-27 11:54:31 +0100
committerJose Fonseca <jfonseca@vmware.com>2019-08-28 15:52:07 +0100
commit6e01575b6817d4e3b243a09b0cea90fdb5d40d2f (patch)
tree9e9bb4dcc2c68310d2cd809c7eb1e2b97a937cff /scons
parent6b2bc8f25ef1b0765a26a1a888bf6f3c60d7d8dc (diff)
scons: Make GCC builds stricter.
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>
Diffstat (limited to 'scons')
-rwxr-xr-xscons/gallium.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index 79b9406a975..72d8604169e 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -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: