1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Make icc ignore "invalid format string conversion" warnings as well. They

appear because of our home-grown option '%Od' for the curl_off_t output.
This commit is contained in:
Daniel Stenberg 2004-02-26 12:40:09 +00:00
parent d687eed33e
commit 85af357d81

View File

@ -506,14 +506,15 @@ AC_DEFUN([CURL_CC_DEBUG_OPTS],
if test "$ICC" = "yes"; then if test "$ICC" = "yes"; then
dnl this is icc, not gcc. dnl this is icc, not gcc.
dnl Warning 279 warns on static conditions in while expressions, dnl ICC warnings we ignore:
dnl ignore that. 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 if test "$gccnum" -gt "600"; then
dnl icc 6.0 and older doesn't have the -Wall flag, although it does dnl icc 6.0 and older doesn't have the -Wall flag
dnl have -wd<n>
WARN="-Wall $WARN" WARN="-Wall $WARN"
fi fi
else dnl $ICC = yes else dnl $ICC = yes