summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-07 23:59:23 +0000
committercehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-07 23:59:23 +0000
commit3dffbac1ae78f3e92841e1f50ea0e2106f2292fb (patch)
treef4818eb77413023bf2aa581a86ef114cd14650a1 /configure
parentaa79f008cd96f4cd55f937280a1f032a5a6d8891 (diff)
downloadmpv-3dffbac1ae78f3e92841e1f50ea0e2106f2292fb.tar.bz2
mpv-3dffbac1ae78f3e92841e1f50ea0e2106f2292fb.tar.xz
Add -Wpointer-arith, -Wredundant-decls and -Wdisabled-optimization to CFLAGS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23503 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index deb788addf..802b1f67f6 100755
--- a/configure
+++ b/configure
@@ -2251,7 +2251,7 @@ elif test -z "$CFLAGS" ; then
elif test "$cc_vendor" != "gnu" ; then
CFLAGS="-O2 $_march $_mcpu $_pipe"
else
- CFLAGS="-Wall -Wno-switch -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer"
+ CFLAGS="-Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer"
fi
else
_warn_CFLAGS=yes
@@ -7398,6 +7398,7 @@ if cc_check -Wdeclaration-after-statement ; then
CFLAGS="-Wdeclaration-after-statement $CFLAGS"
fi
cc_check -Wno-pointer-sign && CFLAGS="-Wno-pointer-sign $CFLAGS"
+cc_check -Wdisabled-optimization && CFLAGS="-Wdisabled-optimization $CFLAGS"
#this must be the last test to be performed or the ones following it will likely fail