ixgbe/base: disable some gcc warnings
authorOuyang Changchun <changchun.ouyang@intel.com>
Thu, 9 Oct 2014 07:27:59 +0000 (15:27 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 10 Oct 2014 15:45:18 +0000 (17:45 +0200)
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 <changchun.ouyang@intel.com>
lib/librte_pmd_ixgbe/Makefile

index 0b647bd..3588047 100644 (file)
@@ -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
 
 #