[Mesa-dev] [PATCH 4/4] scons: Make GCC builds stricter.

Jose Fonseca jfonseca at vmware.com
Tue Aug 27 10:57:41 UTC 2019


Uses some of the same -Werror options used by Meson, as suggested by
Michel Daezer.
---
 scons/gallium.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/scons/gallium.py b/scons/gallium.py
index 21197c8d0d1..2eff4174257 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -473,7 +473,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:
-- 
2.17.1



More information about the mesa-dev mailing list