comparison configure @ 23490:72db608dc10a

Add -Wdeclaration-after-statement etc. only to gcc.
author cehoyos
date Fri, 08 Jun 2007 08:16:54 +0000
parents aeeb6df0c995
children 5fe7ae3280c2
comparison
equal deleted inserted replaced
23489:aeeb6df0c995 23490:72db608dc10a
7392 CXXFLAGS=" $CFLAGS -D__STDC_LIMIT_MACROS" 7392 CXXFLAGS=" $CFLAGS -D__STDC_LIMIT_MACROS"
7393 7393
7394 cat > $TMPC << EOF 7394 cat > $TMPC << EOF
7395 int main() { return 0; } 7395 int main() { return 0; }
7396 EOF 7396 EOF
7397 if test "$cc_vendor" = "gnu" ; then
7397 if cc_check -Wdeclaration-after-statement ; then 7398 if cc_check -Wdeclaration-after-statement ; then
7398 CFLAGS="-Wdeclaration-after-statement $CFLAGS" 7399 CFLAGS="-Wdeclaration-after-statement $CFLAGS"
7399 fi 7400 fi
7400 cc_check -Wno-pointer-sign && CFLAGS="-Wno-pointer-sign $CFLAGS" 7401 cc_check -Wno-pointer-sign && CFLAGS="-Wno-pointer-sign $CFLAGS"
7401 cc_check -Wdisabled-optimization && CFLAGS="-Wdisabled-optimization $CFLAGS" 7402 cc_check -Wdisabled-optimization && CFLAGS="-Wdisabled-optimization $CFLAGS"
7403 fi
7402 7404
7403 7405
7404 #this must be the last test to be performed or the ones following it will likely fail 7406 #this must be the last test to be performed or the ones following it will likely fail
7405 #because libdvdnavmini is intentionally not linked against libdvdread (to permit mplayer 7407 #because libdvdnavmini is intentionally not linked against libdvdread (to permit mplayer
7406 # to use its own copy of the library) 7408 # to use its own copy of the library)