[FFmpeg-devel] [PATCH] Silence useless icc warnings

Carl Eugen Hoyos cehoyos
Sat May 10 19:01:03 CEST 2008


Hi!

Michael Niedermayer <michaelni <at> gmx.at> writes:

> On Sat, May 10, 2008 at 11:37:02AM +0200, Carl Eugen Hoyos wrote:

[...]

> > +  check_cflags -w1
> > +  check_cflags -wd144,167,556,10006,10156
> > +  check_ldflags -wd10156,11030
> 
> These numbers dont say anything to me, doesnt ICC have some options with
> spelled out names?

Not for warnings, AFAICS.

> If not there should be comments explaining what warnings exactly these
> disable

Following is a version which does this, sorry that it is inlined, I'm rather
far away from my own computer.

Please comment, Carl Eugen

Index: configure
===================================================================
--- configure   (revision 13104)
+++ configure   (working copy)
@@ -1815,6 +1815,19 @@
 check_cflags -fno-math-errno
 check_cflags -fno-signed-zeros

+# add some flags for Intel C Compiler
+if `$cc --version |grep -q Intel`; then
+  # Just warnings, no remarks
+  check_cflags -w1
+  # -wd: Disable following warnings
+  # 144, 167, 556: -Wno-pointer-sign
+  # 10006: ignoring unknown option -fno-signed-zeros
+  # 10156: ignoring option '-W'; no argument required
+  check_cflags -wd144,167,556,10006,10156
+  # 11030: ignoring option '-export'; no argument required
+  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






More information about the ffmpeg-devel mailing list