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

Roland Scheidegger sroland at vmware.com
Tue Aug 27 16:30:15 UTC 2019


Am 27.08.19 um 12:57 schrieb Jose Fonseca:
> 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:
> 

For the series:
Reviewed-by: Roland Scheidegger <sroland at vmware.com>


More information about the mesa-dev mailing list