diff options
-rwxr-xr-x | TOOLS/old-configure | 2 | ||||
-rw-r--r-- | osdep/subprocess-posix.c | 2 | ||||
-rw-r--r-- | waftools/detections/compiler.py | 5 |
3 files changed, 4 insertions, 5 deletions
diff --git a/TOOLS/old-configure b/TOOLS/old-configure index edc0dc1196..d4bb13ee66 100755 --- a/TOOLS/old-configure +++ b/TOOLS/old-configure @@ -376,7 +376,7 @@ addcflags() { cflag_check "$@" && OURCFLAGS="$OURCFLAGS $@" ; } OURCFLAGS="-std=c99 -Wall $_opt" addcflags -g -g3 -ggdb -addcflags -Wundef -Wmissing-prototypes -Wshadow -Wno-switch -Wparentheses -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Werror=implicit-function-declaration -Wno-error=deprecated-declarations -Wno-error=unused-function +addcflags -Wundef -Wmissing-prototypes -Wshadow -Wno-switch -Wparentheses -Wpointer-arith -Wno-redundant-decls -Wno-pointer-sign -Werror=implicit-function-declaration -Wno-error=deprecated-declarations -Wno-error=unused-function # clang addcflags -Wno-logical-op-parentheses -fcolor-diagnostics -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare # extra diff --git a/osdep/subprocess-posix.c b/osdep/subprocess-posix.c index 9d565f411e..b0b4b3663e 100644 --- a/osdep/subprocess-posix.c +++ b/osdep/subprocess-posix.c @@ -30,8 +30,6 @@ #include "common/common.h" #include "stream/stream.h" -// Normally, this must be declared manually, but glibc is retarded -// resulting in a warning. extern char **environ; // A silly helper: automatically skips entries with negative FDs 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", |