patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH 19.11 v1 1/3] net/ixgbe: build failure with make and clang 13
@ 2021-12-14 16:29 Haiyue Wang
  2021-12-14 16:29 ` [PATCH 19.11 v1 2/3] net/i40e: " Haiyue Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Haiyue Wang @ 2021-12-14 16:29 UTC (permalink / raw)
  To: stable
  Cc: christian.ehrhardt, yux.jiang, qi.z.zhang, Haiyue Wang,
	Wenzhuo Lu, Konstantin Ananyev

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

Bugzilla ID: 900

Signed-off-by: Haiyue Wang <haiyue.wang@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


^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH 19.11 v1 1/3] net/ixgbe: build failure with make and clang < 13
@ 2021-12-20 10:48 Haiyue Wang
  2021-12-20 10:48 ` [PATCH 19.11 v1 2/3] net/i40e: " Haiyue Wang
  0 siblings, 1 reply; 8+ messages in thread
From: Haiyue Wang @ 2021-12-20 10:48 UTC (permalink / raw)
  To: stable
  Cc: christian.ehrhardt, yux.jiang, qi.z.zhang, alialnu, Haiyue Wang,
	Wenzhuo Lu, Konstantin Ananyev

Check the clang version before enabling '-Wno-unused-but-set-variable',
otherwise it will have "error: unknown warning option".

https://reviews.llvm.org/D100581

Bugzilla ID: 913

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

diff --git a/drivers/net/ixgbe/Makefile b/drivers/net/ixgbe/Makefile
index 31a418a2c6..c730bbddb4 100644
--- a/drivers/net/ixgbe/Makefile
+++ b/drivers/net/ixgbe/Makefile
@@ -29,7 +29,9 @@ 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
+ifeq ($(shell test $(CLANG_MAJOR_VERSION) -ge 13 && echo 1), 1)
 CFLAGS_BASE_DRIVER += -Wno-unused-but-set-variable
+endif
 
 else
 #
-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-01-03 11:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-14 16:29 [PATCH 19.11 v1 1/3] net/ixgbe: build failure with make and clang 13 Haiyue Wang
2021-12-14 16:29 ` [PATCH 19.11 v1 2/3] net/i40e: " Haiyue Wang
2021-12-15 13:40   ` Christian Ehrhardt
2021-12-14 16:29 ` [PATCH 19.11 v1 3/3] net/ice: " Haiyue Wang
2021-12-14 17:23 ` [PATCH 19.11 v1 1/3] net/ixgbe: " Ali Alnubani
2021-12-15  1:05   ` Wang, Haiyue
2021-12-20 10:48 [PATCH 19.11 v1 1/3] net/ixgbe: build failure with make and clang < 13 Haiyue Wang
2021-12-20 10:48 ` [PATCH 19.11 v1 2/3] net/i40e: " Haiyue Wang
2022-01-03 11:34   ` Christian Ehrhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).