diff options
author | wm4 <wm4@nowhere> | 2014-12-14 20:44:27 +0100 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-12-17 20:11:30 +0100 |
commit | 00d1d6d807d52ef93c300df4e76d834143ac5962 (patch) | |
tree | f6450d0f206486206cd1392a5813b600fc964752 /waftools/detections | |
parent | 49c3cbfb4e3f97af28e1ba95bcd8444ab3ee22c7 (diff) | |
download | mpv-00d1d6d807d52ef93c300df4e76d834143ac5962.tar.bz2 mpv-00d1d6d807d52ef93c300df4e76d834143ac5962.tar.xz |
build: add checks for some compiler warning flags
Diffstat (limited to 'waftools/detections')
-rw-r--r-- | waftools/detections/compiler.py | 16 |
1 files changed, 8 insertions, 8 deletions
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", |