From 03a35595d095f90e7a963fad035f2ac332794061 Mon Sep 17 00:00:00 2001 From: Ouyang Changchun Date: Thu, 9 Oct 2014 15:27:59 +0800 Subject: [PATCH] ixgbe/base: disable some gcc warnings This patch disables compilation complain from lower GCC version (less than 4.6). Note: Only supported versions of GCC are 4.x. Signed-off-by: Changchun Ouyang --- lib/librte_pmd_ixgbe/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/librte_pmd_ixgbe/Makefile b/lib/librte_pmd_ixgbe/Makefile index 0b647bd06b..35880479e8 100644 --- a/lib/librte_pmd_ixgbe/Makefile +++ b/lib/librte_pmd_ixgbe/Makefile @@ -66,6 +66,11 @@ ifeq ($(shell test $(GCC_MAJOR_VERSION) -ge 4 -a $(GCC_MINOR_VERSION) -ge 6 && e 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_MAJOR_VERSION) -le 4 -a $(GCC_MINOR_VERSION) -le 6 && echo 1), 1) +CFLAGS_ixgbe_x550.o += -Wno-uninitialized +CFLAGS_ixgbe_phy.o += -Wno-uninitialized +endif endif # -- 2.20.1