diff options
author | wm4 <wm4@nowhere> | 2014-04-04 18:22:49 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-04 18:35:30 +0200 |
commit | dad50c379c59f4b35daebe0db7f820f4eba5d5f3 (patch) | |
tree | d64efdb3e313f45df4ded57c227f516fbb6ea553 /waftools/detections | |
parent | 60e24fa8422a580e5a21f5e9e181323beef7cd8c (diff) | |
download | mpv-dad50c379c59f4b35daebe0db7f820f4eba5d5f3.tar.bz2 mpv-dad50c379c59f4b35daebe0db7f820f4eba5d5f3.tar.xz |
build: add -Wempty-body to compiler flags
Warns against "if(0);" but not "if(0){}" - perfect for our purposes.
Diffstat (limited to 'waftools/detections')
-rw-r--r-- | waftools/detections/compiler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py index fe607faa1c..1d854bf0ad 100644 --- a/waftools/detections/compiler.py +++ b/waftools/detections/compiler.py @@ -21,7 +21,7 @@ def __add_generic_flags__(ctx): ctx.env.CFLAGS += ['-g'] def __add_gcc_flags__(ctx): - ctx.env.CFLAGS += ["-Wundef", "-Wmissing-prototypes", + ctx.env.CFLAGS += ["-Wundef", "-Wmissing-prototypes", "-Wempty-body", "-Wno-switch", "-Wno-parentheses", "-Wpointer-arith", "-Wredundant-decls", "-Wno-pointer-sign", "-Werror=implicit-function-declaration", @@ -30,7 +30,7 @@ def __add_gcc_flags__(ctx): def __add_clang_flags__(ctx): ctx.env.CFLAGS += ["-Wno-logical-op-parentheses", "-fcolor-diagnostics", - "-Wno-tautological-compare", + "-Wno-tautological-compare", "-Wempty-body", "-Wno-tautological-constant-out-of-range-compare" ] def __add_mingw_flags__(ctx): |