summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Fonseca <[email protected]>2019-08-27 11:54:31 +0100
committerJose Fonseca <[email protected]>2019-08-28 15:52:07 +0100
commit6e01575b6817d4e3b243a09b0cea90fdb5d40d2f (patch)
tree9e9bb4dcc2c68310d2cd809c7eb1e2b97a937cff
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 <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]> Reviewed-by: Michel Dänzer <[email protected]> Acked-by: Eric Engestrom <[email protected]>
-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: