From: Bruce Richardson Date: Thu, 4 May 2017 15:38:14 +0000 (+0100) Subject: drivers/net: disable new gcc 7 warnings for base code X-Git-Tag: spdx-start~3265 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=803d48340c743eb76c12ca347e4135d2c6e7bc58;p=dpdk.git drivers/net: disable new gcc 7 warnings for base code For base code in drivers shared with other projects, disable the new warnings from gcc 7 about unlabelled fall-through in switch statements. Signed-off-by: Bruce Richardson --- diff --git a/drivers/net/e1000/Makefile b/drivers/net/e1000/Makefile index a32fabe5f6..b5592d6b12 100644 --- a/drivers/net/e1000/Makefile +++ b/drivers/net/e1000/Makefile @@ -57,6 +57,9 @@ CFLAGS_BASE_DRIVER += -Wno-unused-variable ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y) ifeq ($(shell test $(GCC_VERSION) -ge 60 && echo 1), 1) CFLAGS_BASE_DRIVER += -Wno-misleading-indentation +ifeq ($(shell test $(GCC_VERSION) -ge 70 && echo 1), 1) +CFLAGS_BASE_DRIVER += -Wno-implicit-fallthrough +endif endif endif endif diff --git a/drivers/net/fm10k/Makefile b/drivers/net/fm10k/Makefile index a8e8136af8..e0024f0521 100644 --- a/drivers/net/fm10k/Makefile +++ b/drivers/net/fm10k/Makefile @@ -71,6 +71,9 @@ CFLAGS_BASE_DRIVER += -Wno-missing-field-initializers ifeq ($(shell test $(GCC_VERSION) -ge 44 && echo 1), 1) CFLAGS += -Wno-deprecated CFLAGS_BASE_DRIVER += -Wno-unused-but-set-variable +ifeq ($(shell test $(GCC_VERSION) -ge 70 && echo 1), 1) +CFLAGS_BASE_DRIVER += -Wno-implicit-fallthrough +endif endif endif diff --git a/drivers/net/ixgbe/Makefile b/drivers/net/ixgbe/Makefile index 0a6b7f24c9..5529d81cbd 100644 --- a/drivers/net/ixgbe/Makefile +++ b/drivers/net/ixgbe/Makefile @@ -76,6 +76,9 @@ endif ifeq ($(shell test $(GCC_VERSION) -ge 50 && echo 1), 1) CFLAGS_ixgbe_common.o += -Wno-logical-not-parentheses +ifeq ($(shell test $(GCC_VERSION) -ge 70 && echo 1), 1) +CFLAGS_BASE_DRIVER += -Wno-implicit-fallthrough +endif endif endif diff --git a/drivers/net/qede/Makefile b/drivers/net/qede/Makefile index 8acef004b7..3323914c0b 100644 --- a/drivers/net/qede/Makefile +++ b/drivers/net/qede/Makefile @@ -56,6 +56,9 @@ endif CFLAGS_BASE_DRIVER += -Wno-strict-prototypes ifeq ($(shell test $(GCC_VERSION) -ge 60 && echo 1), 1) CFLAGS_BASE_DRIVER += -Wno-shift-negative-value +ifeq ($(shell test $(GCC_VERSION) -ge 70 && echo 1), 1) +CFLAGS_BASE_DRIVER += -Wno-implicit-fallthrough +endif endif else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y) CFLAGS_BASE_DRIVER += -Wno-format-extra-args