Mercurial > mplayer.hg
changeset 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 |
files | configure |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Fri Jun 08 08:14:31 2007 +0000 +++ b/configure Fri Jun 08 08:16:54 2007 +0000 @@ -7394,11 +7394,13 @@ 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