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

Brian Paul brianp at vmware.com
Tue Aug 27 12:06:06 UTC 2019


For the series,  Reviewed-by: Brian Paul <brianp at vmware.com>

On 08/27/2019 04:57 AM, Jose Fonseca wrote:
> 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:
> 



More information about the mesa-dev mailing list