diff options
author | wm4 <wm4@nowhere> | 2014-12-14 20:44:27 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-14 20:44:27 +0100 |
commit | 91b8a7f9943ed82b9e53178c798ce31a01174aa6 (patch) | |
tree | c245e7b6aa28d83e5a2c7b60174c10e074cab978 /waftools | |
parent | aaa319fcbdaf7ef5bcf76c6e8727532ebee2c973 (diff) | |
download | mpv-91b8a7f9943ed82b9e53178c798ce31a01174aa6.tar.bz2 mpv-91b8a7f9943ed82b9e53178c798ce31a01174aa6.tar.xz |
build: add checks for some compiler warning flags
Diffstat (limited to 'waftools')
-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", |