From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] ixgbe: Disable GCC warning on IXGBE base codes Date: Fri, 10 Oct 2014 18:04:59 +0200 Message-ID: <3936396.9kzqsUDoQ1@xps13> References: <1412839679-8242-1-git-send-email-changchun.ouyang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Ouyang Changchun Return-path: In-Reply-To: <1412839679-8242-1-git-send-email-changchun.ouyang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 2014-10-09 15:27, Ouyang Changchun: > This patch disables compilation complain from lower GCC version (less than 4.6). > > Signed-off-by: Changchun Ouyang > --- 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 Note that the tests in this file are valids only because we don't support GCC 3 and there is no GCC 5 yet. But I feel we should fix it soon. Applied Thanks -- Thomas