]> granicus.if.org Git - curl/commitdiff
icc 9.0 when compiling its generated code for its own FD_SET,
authorYang Tse <yangsita@gmail.com>
Thu, 15 Feb 2007 14:02:32 +0000 (14:02 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 15 Feb 2007 14:02:32 +0000 (14:02 +0000)
FD_ISSET, and FD_ZERO macros emits warnings #1469 and #593.
So for icc 9.0 we also ignore warnings #1469 and #593.
* 593 warns on "variable __d0 was set but never used"
* 1469 warns on "cc clobber ignored"

acinclude.m4
ares/acinclude.m4

index ef12f11ebfab537746e4c7c89844ee29efea1d7f..ca96acc3554b7b45e7d5efa5d3d85fe99cdc9d35 100644 (file)
@@ -5,7 +5,7 @@
 #                            | (__| |_| |  _ <| |___
 #                             \___|\___/|_| \_\_____|
 #
-# Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
 #
 # This software is licensed as described in the file COPYING, which
 # you should have received as part of this distribution. The terms
@@ -1743,6 +1743,16 @@ AC_DEFUN([CURL_CC_DEBUG_OPTS],
 
          WARN="-wd279,269,981,1418,1419"
 
+         if test "$gccnum" -eq "900"; then
+            dnl icc 9.0 when compiling its generated code for its own FD_SET,
+            dnl FD_ISSET, and FD_ZERO macros emits warnings #1469 and #593.
+            dnl So for icc 9.0 we also ignore warnings #1469 and #593.
+            dnl * 593 warns on "variable __d0 was set but never used"
+            dnl * 1469 warns on "cc clobber ignored"
+            dnl
+            WARN="$WARN,593,1469"
+         fi
+
          if test "$gccnum" -gt "600"; then
             dnl icc 6.0 and older doesn't have the -Wall flag
             WARN="-Wall $WARN"
index 5c9132a9dfd1a5a9d5573a3352b9edfe138ea76a..66a3c20348175b8a28d4b3d806d93d5817d1153a 100644 (file)
@@ -1350,6 +1350,16 @@ AC_DEFUN([CURL_CC_DEBUG_OPTS],
 
          WARN="-wd279,269,981,1418,1419"
 
+         if test "$gccnum" -eq "900"; then
+            dnl icc 9.0 when compiling its generated code for its own FD_SET,
+            dnl FD_ISSET, and FD_ZERO macros emits warnings #1469 and #593.
+            dnl So for icc 9.0 we also ignore warnings #1469 and #593.
+            dnl * 593 warns on "variable __d0 was set but never used"
+            dnl * 1469 warns on "cc clobber ignored"
+            dnl
+            WARN="$WARN,593,1469"
+         fi
+
          if test "$gccnum" -gt "600"; then
             dnl icc 6.0 and older doesn't have the -Wall flag
             WARN="-Wall $WARN"