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:
Diogo Franco (Kovensky) 2013-07-20 13:00:10 -03:00 committed by wm4
parent ccc4512e1d
commit b9944e2dc1
1 changed files with 2 additions and 2 deletions

4
configure vendored
View File

@ -1118,13 +1118,13 @@ if test -z "$CFLAGS" ; then
elif test "$cc_vendor" = "clang"; then
CFLAGS="$_opt $_debug $_pipe"
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
CFLAGS="$_opt $_debug $_pipe"
else
CFLAGS="$_opt $_debug $_pipe"
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"
fi
else