diff options
author | wm4 <wm4@nowhere> | 2014-09-26 13:52:55 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-09-26 13:52:55 +0200 |
commit | 8fd954ac8e7fe5d2770d74c3780bdd5f44aa0906 (patch) | |
tree | 446d999d5d62ec69f9348ad26d67de6be837493f /waftools/detections | |
parent | fdf40743bcf99d6ce5cc258e59fec30e0cb203e8 (diff) | |
download | mpv-8fd954ac8e7fe5d2770d74c3780bdd5f44aa0906.tar.bz2 mpv-8fd954ac8e7fe5d2770d74c3780bdd5f44aa0906.tar.xz |
build: add -Wno-format-zero-length
This warning makes absolutely no sense. Passing an empty string to
printf-like functions is perfectly fine. In the OSD case, it just sets
an empty message, practically clearing the OSD.
Diffstat (limited to 'waftools/detections')
-rw-r--r-- | waftools/detections/compiler.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py index b98218856f..792511af33 100644 --- a/waftools/detections/compiler.py +++ b/waftools/detections/compiler.py @@ -38,6 +38,7 @@ def __add_gcc_flags__(ctx): __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"]) def __add_clang_flags__(ctx): ctx.env.CFLAGS += ["-Wno-logical-op-parentheses", "-fcolor-diagnostics", |