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 /old-configure | |
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 'old-configure')
-rwxr-xr-x | old-configure | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/old-configure b/old-configure index c57305e409..c216d4f882 100755 --- a/old-configure +++ b/old-configure @@ -380,9 +380,11 @@ addcflags() { cflag_check "$@" && OURCFLAGS="$OURCFLAGS $@" ; } OURCFLAGS="-std=c99 -Wall $_opt" addcflags -g -g3 -ggdb -addcflags -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 -Wempty-body +addcflags -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 # clang addcflags -Wno-logical-op-parentheses -fcolor-diagnostics -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare +# extra +addcflags -Wno-format-zero-length -Wempty-body -Wdisabled-optimization -Wstrict-prototypes cflag_check -MD -MP && DEPFLAGS="-MD -MP" cflag_check -lm && _ld_lm="-lm" |