Browse code

Silence useless icc warnings.

Originally committed as revision 13118 to svn://svn.ffmpeg.org/ffmpeg/trunk

Carl Eugen Hoyos authored on 2008/05/11 22:08:18
Showing 1 changed files
... ...
@@ -1815,6 +1815,20 @@ fi
1815 1815
 check_cflags -fno-math-errno
1816 1816
 check_cflags -fno-signed-zeros
1817 1817
 
1818
+# add some flags for Intel C Compiler
1819
+if $cc --version | grep -q Intel; then
1820
+  # Just warnings, no remarks
1821
+  check_cflags -w1
1822
+  # -wd: Disable following warnings
1823
+  # 144, 167, 556: -Wno-pointer-sign
1824
+  # 10006: ignoring unknown option -fno-signed-zeros
1825
+  # 10156: ignoring option '-W'; no argument required
1826
+  check_cflags -wd144,167,556,10006,10156
1827
+  # 11030: Warning unknown option --as-needed
1828
+  # 10156: ignoring option '-export'; no argument required
1829
+  check_ldflags -wd10156,11030
1830
+fi
1831
+
1818 1832
 # PIC flags for shared library objects where they are needed
1819 1833
 if enabled shared; then
1820 1834
     # LIBOBJFLAGS may have already been set in the OS configuration