[PATCH 19.11 v1 3/3] net/ice: build failure with make and clang 13
Haiyue Wang
haiyue.wang at intel.com
Tue Dec 14 17:29:34 CET 2021
Disable the -Wunused-but-set-variable option for clang to avoid
compile warning.
Bugzilla ID: 902
Signed-off-by: Haiyue Wang <haiyue.wang at intel.com>
---
drivers/net/ice/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ice/Makefile b/drivers/net/ice/Makefile
index 6c4d155268..370b33af60 100644
--- a/drivers/net/ice/Makefile
+++ b/drivers/net/ice/Makefile
@@ -26,6 +26,7 @@ CFLAGS_BASE_DRIVER +=
else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y)
CFLAGS_BASE_DRIVER += -Wno-unused-parameter
CFLAGS_BASE_DRIVER += -Wno-unused-variable
+CFLAGS_BASE_DRIVER += -Wno-unused-but-set-variable
else
CFLAGS_BASE_DRIVER += -Wno-unused-parameter
CFLAGS_BASE_DRIVER += -Wno-unused-variable
--
2.34.1
More information about the stable
mailing list