[Mesa-dev] [PATCH 3/5] scons: add Wundef to the build flags

Emil Velikov emil.l.velikov at gmail.com
Fri Nov 24 14:25:04 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

Analogous to the other build systems.

Cc: Jose Fonseca <jfonseca at vmware.com>
Cc: Brian Paul <brianp at vmware.com>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 scons/gallium.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scons/gallium.py b/scons/gallium.py
index ef3b2ee81ae..74793a2525c 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -455,6 +455,7 @@ def generate(env):
         # - http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
         ccflags += [
             '-Wall',
+            '-Wundef',
             '-Wno-long-long',
             '-fmessage-length=0', # be nice to Eclipse
         ]
-- 
2.14.1



More information about the mesa-dev mailing list