[MPlayer-dev-eng] [PATCH] Only use -Wdeclaration-after-statement with gcc

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Jun 8 01:53:42 CEST 2007


Hi!

-Wall is only used for gcc, -Wdeclaration-after-statement and
-Wno-pointer-sign are also added for other compilers that do not support
these switches (icc).
Following patch fixes this. If accepted, I'll also apply a cosmetic patch.

Carl Eugen

Index: configure
===================================================================
--- configure   (Revision 23501)
+++ configure   (Arbeitskopie)
@@ -7394,10 +7394,12 @@
 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"
+fi


 #this must be the last test to be performed or the ones following it
will likely fail



More information about the MPlayer-dev-eng mailing list