From 91b8a7f9943ed82b9e53178c798ce31a01174aa6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 14 Dec 2014 20:44:27 +0100 Subject: build: add checks for some compiler warning flags --- waftools/detections/compiler.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'waftools/detections') diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py index 792511af33..2c22f26a1a 100644 --- a/waftools/detections/compiler.py +++ b/waftools/detections/compiler.py @@ -31,14 +31,14 @@ def __add_generic_flags__(ctx): def __add_gcc_flags__(ctx): ctx.env.CFLAGS += ["-Wall", "-Wundef", "-Wmissing-prototypes", "-Wshadow", "-Wno-switch", "-Wno-parentheses", "-Wpointer-arith", - "-Wredundant-decls", "-Wno-pointer-sign", - "-Werror=implicit-function-declaration", - "-Wno-error=deprecated-declarations", - "-Wno-error=unused-function" ] - __test_and_add_flags__(ctx, ["-Wempty-body"]) - __test_and_add_flags__(ctx, ["-Wdisabled-optimization"]) - __test_and_add_flags__(ctx, ["-Wstrict-prototypes"]) - __test_and_add_flags__(ctx, ["-Wno-format-zero-length"]) + "-Wredundant-decls", "-Wno-pointer-sign"] + __test_and_add_flags__(ctx, ["-Werror=implicit-function-declaration", + "-Wno-error=deprecated-declarations", + "-Wno-error=unused-function", + "-Wempty-body", + "-Wdisabled-optimization", + "-Wstrict-prototypes", + "-Wno-format-zero-length"]) def __add_clang_flags__(ctx): ctx.env.CFLAGS += ["-Wno-logical-op-parentheses", "-fcolor-diagnostics", -- cgit v1.2.3