]> granicus.if.org Git - curl/commitdiff
Make icc ignore "invalid format string conversion" warnings as well. They
authorDaniel Stenberg <daniel@haxx.se>
Thu, 26 Feb 2004 12:40:09 +0000 (12:40 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 26 Feb 2004 12:40:09 +0000 (12:40 +0000)
appear because of our home-grown option '%Od' for the curl_off_t output.

acinclude.m4

index 1e9e5f625d74aaf9739ed4ec1049ea5c5bea27e3..d69a181bfbbca222f4b81172d4c9412be319380f 100644 (file)
@@ -506,14 +506,15 @@ AC_DEFUN([CURL_CC_DEBUG_OPTS],
        if test "$ICC" = "yes"; then
          dnl this is icc, not gcc.
 
-         dnl Warning 279 warns on static conditions in while expressions,
-         dnl ignore that.
+         dnl ICC warnings we ignore:
+         dnl * 279 warns on static conditions in while expressions
+         dnl * 269 warns on our "%Od" printf formatters for curl_off_t output:
+         dnl   "invalid format string conversion"
 
-         WARN="-wd279"
+         WARN="-wd279,269"
 
          if test "$gccnum" -gt "600"; then
-            dnl icc 6.0 and older doesn't have the -Wall flag, although it does
-            dnl have -wd<n>
+            dnl icc 6.0 and older doesn't have the -Wall flag
             WARN="-Wall $WARN"
          fi
        else dnl $ICC = yes