Disable 'attribute "foo" ignored' warnings from icc
authorMans Rullgard <mans@mansr.com>
Wed, 23 Mar 2011 11:24:10 +0000 (11:24 +0000)
committerMans Rullgard <mans@mansr.com>
Wed, 23 Mar 2011 12:38:37 +0000 (12:38 +0000)
ICC lies about the version of gcc it emulates, which results
in unsupported attributes sometimes being used.  The warning
is an annoyance and should be disabled.

Signed-off-by: Mans Rullgard <mans@mansr.com>
configure

index bde1dad1c4d05fa3bc87c85f88e11c730bb7cfb1..316b849aa7c643c25c19a78dec070ddaea8b5571 100755 (executable)
--- a/configure
+++ b/configure
@@ -2987,10 +2987,11 @@ if enabled icc; then
     check_cflags -w1
     # -wd: Disable following warnings
     # 144, 167, 556: -Wno-pointer-sign
+    # 1292: attribute "foo" ignored
     # 10006: ignoring unknown option -fno-signed-zeros
     # 10148: ignoring unknown option -Wno-parentheses
     # 10156: ignoring option '-W'; no argument required
-    check_cflags -wd144,167,556,10006,10148,10156
+    check_cflags -wd144,167,556,1292,10006,10148,10156
     # 11030: Warning unknown option --as-needed
     # 10156: ignoring option '-export'; no argument required
     check_ldflags -wd10156,11030