mirror of https://github.com/mpv-player/mpv
configure: Add some -Wno-error= flags to ERRORFLAGS
-Wno-error=deprecated-declarations and -Wno-error=unused-function. Lets mpv compile with --extra-cflags=-Werror with gcc 4.8.1.
This commit is contained in:
parent
ccc4512e1d
commit
b9944e2dc1
|
@ -1118,13 +1118,13 @@ if test -z "$CFLAGS" ; then
|
||||||
elif test "$cc_vendor" = "clang"; then
|
elif test "$cc_vendor" = "clang"; then
|
||||||
CFLAGS="$_opt $_debug $_pipe"
|
CFLAGS="$_opt $_debug $_pipe"
|
||||||
WARNFLAGS="-Wall -Wno-switch -Wno-logical-op-parentheses -Wpointer-arith -Wundef -Wno-pointer-sign -Wmissing-prototypes"
|
WARNFLAGS="-Wall -Wno-switch -Wno-logical-op-parentheses -Wpointer-arith -Wundef -Wno-pointer-sign -Wmissing-prototypes"
|
||||||
ERRORFLAGS="-Werror=implicit-function-declaration"
|
ERRORFLAGS="-Werror=implicit-function-declaration -Wno-error=deprecated-declarations -Wno-error=unused-function"
|
||||||
elif test "$cc_vendor" != "gnu" ; then
|
elif test "$cc_vendor" != "gnu" ; then
|
||||||
CFLAGS="$_opt $_debug $_pipe"
|
CFLAGS="$_opt $_debug $_pipe"
|
||||||
else
|
else
|
||||||
CFLAGS="$_opt $_debug $_pipe"
|
CFLAGS="$_opt $_debug $_pipe"
|
||||||
WARNFLAGS="-Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls"
|
WARNFLAGS="-Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls"
|
||||||
ERRORFLAGS="-Werror-implicit-function-declaration"
|
ERRORFLAGS="-Werror-implicit-function-declaration -Wno-error=deprecated-declarations -Wno-error=unused-function"
|
||||||
extra_ldflags="$extra_ldflags"
|
extra_ldflags="$extra_ldflags"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue