[PATCH 19.11 v2 3/3] net/ixgbe: build failure with make and clang 13

Haiyue Wang haiyue.wang at intel.com
Wed Dec 15 01:35:44 CET 2021


Disable the -Wunused-but-set-variable option for clang to avoid
compile warning.

Bugzilla ID: 903

Signed-off-by: Haiyue Wang <haiyue.wang at intel.com>
---
 drivers/net/ixgbe/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ixgbe/Makefile b/drivers/net/ixgbe/Makefile
index 31523025b3..31a418a2c6 100644
--- a/drivers/net/ixgbe/Makefile
+++ b/drivers/net/ixgbe/Makefile
@@ -29,6 +29,7 @@ else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y)
 #
 CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value
 CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -Wno-format-extra-args
+CFLAGS_BASE_DRIVER += -Wno-unused-but-set-variable
 
 else
 #
-- 
2.34.1



More information about the stable mailing list