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

Diego Biurrun diego at biurrun.de
Fri Jun 8 09:37:05 CEST 2007


On Fri, Jun 08, 2007 at 01:53:42AM +0200, Carl Eugen Hoyos wrote:
> 
> -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).
> 
> --- configure   (Revision 23501)
> +++ configure   (Arbeitskopie)
> @@ -7394,10 +7394,12 @@
> +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

I don't think this is necessary, cc_check should fail if the compiler
does not support these options...

Diego



More information about the MPlayer-dev-eng mailing list