From: Panu Matilainen Date: Tue, 24 Feb 2015 13:13:43 +0000 (+0200) Subject: ixgbe: fix build with gcc 5 X-Git-Tag: spdx-start~9540 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4dc41c7be65c92f9408f5664ebb917e3c857642d;p=dpdk.git ixgbe: fix build with gcc 5 gcc 5 supports a new logical-not-parentheses warning which ixgbe_common.c triggers, causing build failure with -Werror. Since this source must not be modified, silence the warning instead. Signed-off-by: Panu Matilainen Acked-by: Konstantin Ananyev --- diff --git a/lib/librte_pmd_ixgbe/Makefile b/lib/librte_pmd_ixgbe/Makefile index 43870f75d2..9a5cd3397b 100644 --- a/lib/librte_pmd_ixgbe/Makefile +++ b/lib/librte_pmd_ixgbe/Makefile @@ -71,6 +71,10 @@ CFLAGS_ixgbe_common.o += -Wno-unused-but-set-variable CFLAGS_ixgbe_x550.o += -Wno-unused-but-set-variable -Wno-maybe-uninitialized endif +ifeq ($(shell test $(GCC_VERSION) -ge 50 && echo 1), 1) +CFLAGS_ixgbe_common.o += -Wno-logical-not-parentheses +endif + ifeq ($(shell test $(GCC_VERSION) -le 46 && echo 1), 1) CFLAGS_ixgbe_x550.o += -Wno-uninitialized CFLAGS_ixgbe_phy.o += -Wno-uninitialized