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

Jose Fonseca jfonseca at vmware.com
Fri Nov 24 15:04:33 UTC 2017


On 24/11/17 14:25, Emil Velikov wrote:
> 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
>           ]
> 

Sounds good to me.

Reviewed-by: Jose Fonseca <jfonseca at vmware.com>


More information about the mesa-dev mailing list