From: Jose Fonseca Date: Tue, 27 Aug 2019 10:54:31 +0000 (+0100) Subject: scons: Make GCC builds stricter. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6e01575b6817d4e3b243a09b0cea90fdb5d40d2f;p=mesa.git scons: Make GCC builds stricter. Uses some of the same -Werror options used by Meson, as suggested by Michel Dänzer. Reviewed-by: Brian Paul Reviewed-by: Roland Scheidegger Reviewed-by: Michel Dänzer Acked-by: Eric Engestrom --- diff --git a/scons/gallium.py b/scons/gallium.py index 79b9406a975..72d8604169e 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -481,7 +481,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: