summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-08 08:16:54 +0000
committercehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-08 08:16:54 +0000
commitc71ad8a3e0b6b892b8973ce065ca1420c38afdea (patch)
tree29e90ef2010086d8b3e34d8935b2d6dce2204fd0 /configure
parent72d4c8cdbb99f3d52ec1a3d8dc2e5385d2c56518 (diff)
downloadmpv-c71ad8a3e0b6b892b8973ce065ca1420c38afdea.tar.bz2
mpv-c71ad8a3e0b6b892b8973ce065ca1420c38afdea.tar.xz
Add -Wdeclaration-after-statement etc. only to gcc.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23510 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index f7d7fba115..bb3d9d43d4 100755
--- a/configure
+++ b/configure
@@ -7394,11 +7394,13 @@ CXXFLAGS=" $CFLAGS -D__STDC_LIMIT_MACROS"
cat > $TMPC << EOF
int main() { return 0; }
EOF
+if test "$cc_vendor" = "gnu" ; then
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"
+fi
#this must be the last test to be performed or the ones following it will likely fail