From 6e01575b6817d4e3b243a09b0cea90fdb5d40d2f Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Tue, 27 Aug 2019 11:54:31 +0100 Subject: [PATCH] scons: Make GCC builds stricter. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- scons/gallium.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- 2.30.2