summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiogo Franco (Kovensky) <diogomfranco@gmail.com>2013-07-20 13:00:10 -0300
committerwm4 <wm4@nowhere>2013-07-21 01:14:18 +0200
commitb9944e2dc12e557d0c92052f9abac9ea298320db (patch)
tree08573a6a4e57fcd8067c8dc9f7f0c3e07000e6fd
parentccc4512e1d8aaaece305df23d1fbad626db6f985 (diff)
downloadmpv-b9944e2dc12e557d0c92052f9abac9ea298320db.tar.bz2
mpv-b9944e2dc12e557d0c92052f9abac9ea298320db.tar.xz
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.
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 21e7d92e12..a4ef16c702 100755
--- a/configure
+++ b/configure
@@ -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