From 27f7489adc75310863df6116d447cfc0959f6526 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 9 May 2015 19:59:52 +0200 Subject: build: exclude -Wredundant-decls It's useless, and creates a bogus warning in subprocess-posix.c. Since I don't know which compilers might have it by default, just change it to -Wno-redundant-decls. --- waftools/detections/compiler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'waftools/detections') diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py index 7cae75e4dc..d3e6b34455 100644 --- a/waftools/detections/compiler.py +++ b/waftools/detections/compiler.py @@ -35,12 +35,13 @@ def __add_generic_flags__(ctx): "-Wdisabled-optimization", "-Wstrict-prototypes", "-Wno-format-zero-length", - "-Werror=format-security"]) + "-Werror=format-security", + "-Wno-redundant-decls"]) def __add_gcc_flags__(ctx): ctx.env.CFLAGS += ["-Wall", "-Wundef", "-Wmissing-prototypes", "-Wshadow", "-Wno-switch", "-Wparentheses", "-Wpointer-arith", - "-Wredundant-decls", "-Wno-pointer-sign"] + "-Wno-pointer-sign"] def __add_clang_flags__(ctx): ctx.env.CFLAGS += ["-Wno-logical-op-parentheses", "-fcolor-diagnostics", -- cgit v1.2.3