[FFmpeg-devel] [PATCH] Silence useless icc warnings
Benoit Fouet
benoit.fouet
Sat May 10 14:04:07 CEST 2008
Carl Eugen Hoyos wrote:
> Hi!
>
> Attached patch silences most icc warnings.
> Please comment.
>
> Thank you, Carl Eugen
> ------------------------------------------------------------------------
>
> Index: configure
> ===================================================================
> --- configure (revision 13104)
> +++ configure (working copy)
> @@ -1815,6 +1815,13 @@
> check_cflags -fno-math-errno
> check_cflags -fno-signed-zeros
>
> +# add flags to silence some icc warnings
> +if test `basename $cc` = "icc"; then
>
IIRC, using basename is not good (cannot remember why, though)
you should use (if I'm correct :) ):
if test ${cc##*/} = "icc"
> + check_cflags -w1
> + check_cflags -wd144,167,556,10006,10156
> + check_ldflags -wd10156,11030
> +fi
> +
> # PIC flags for shared library objects where they are needed
> if enabled shared; then
> # LIBOBJFLAGS may have already been set in the OS configuration
>
--
Benoit Fouet
Purple Labs S.A.
www.purplelabs.com
More information about the ffmpeg-devel
mailing list