From 78e0ba82b01a8fe63f3413f2fa89b63b09b7c535 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Wed, 10 Mar 2004 09:52:04 +0000
Subject: [PATCH] ignore the icc warning 981 "operands are evaluated in
 unspecified order"

---
 acinclude.m4 | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/acinclude.m4 b/acinclude.m4
index a53ca78277..5acec28d2b 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -507,13 +507,14 @@ AC_DEFUN([CURL_CC_DEBUG_OPTS],
          dnl this is icc, not gcc.
 
          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"
+         dnl * 279 warns on static conditions in while expressions
+         dnl * 981 warns on "operands are evaluated in unspecified order"
          dnl * 1419 warns on "external declaration in primary source file"
          dnl   which we know and do on purpose.
 
-         WARN="-wd279,269,1419"
+         WARN="-wd279,269,1419,981"
 
          if test "$gccnum" -gt "600"; then
             dnl icc 6.0 and older doesn't have the -Wall flag
-- 
GitLab