From: Ferruh Yigit Date: Thu, 24 Mar 2016 17:34:51 +0000 (+0000) Subject: ixgbe: disable icc false positive warning X-Git-Tag: spdx-start~7170 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9d2f7db9c0bb77eb1658d530f94488afba5fa01f;p=dpdk.git ixgbe: disable icc false positive warning icc (icc (ICC) 16.0.1 20151021) is generating following compile error: CC ixgbe_rxtx.o .../drivers/net/ixgbe/ixgbe_rxtx.c(153): error #3656: variable "free" may be used before its value is set (nb_free > 0 && m->pool != free[0]->pool)) { ^ Indeed this is a false positive and code is correct. "nb_free" check prevents the free[] access before its value set. Disabling this icc warning (#3656) for file ixgbe_rxtx.c. Signed-off-by: Ferruh Yigit Acked-by: Konstantin Ananyev --- diff --git a/drivers/net/ixgbe/Makefile b/drivers/net/ixgbe/Makefile index c032775315..50bf51c9c2 100644 --- a/drivers/net/ixgbe/Makefile +++ b/drivers/net/ixgbe/Makefile @@ -49,6 +49,8 @@ ifeq ($(CC), icc) # CFLAGS_BASE_DRIVER = -wd174 -wd593 -wd869 -wd981 -wd2259 +CFLAGS_ixgbe_rxtx.o += -wd3656 + else ifeq ($(CC), clang) # # CFLAGS for clang