From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3 1/2] mk: fix build with gcc 4.4 and clang Date: Mon, 20 Apr 2015 14:44:42 +0200 Message-ID: <4644506.8crX46iRBs@xps13> References: <1429130956-17828-1-git-send-email-thomas.monjalon@6wind.com> <1429222237-8002-1-git-send-email-thomas.monjalon@6wind.com> <553365A5.20405@cloudius-systems.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <553365A5.20405-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@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" > > With GCC 4.4.7 from CentOS 6.5, the following errors arise: > > > > lib/librte_pmd_ixgbe/ixgbe_rxtx.c: In function 'ixgbe_dev_rx_queue_setup': > > lib/librte_pmd_ixgbe/ixgbe_rxtx.c:2509: error: missing initializer > > lib/librte_pmd_ixgbe/ixgbe_rxtx.c:2509: error: (near initialization for 'dev_info.driver_name') > > > > lib/librte_pmd_ixgbe/ixgbe_rxtx.c: In function 'ixgbe_set_rsc': > > lib/librte_pmd_ixgbe/ixgbe_rxtx.c:4072: error: missing initializer > > lib/librte_pmd_ixgbe/ixgbe_rxtx.c:4072: error: (near initialization for 'dev_info.driver_name') > > > > lib/librte_pmd_ixgbe/ixgbe_rxtx.c: In function 'ixgbe_recv_pkts_lro_single_alloc': > > lib/librte_pmd_ixgbe/ixgbe_rxtx.c:1479: error: 'next_rsc_entry' may be used uninitialized in this function > > lib/librte_pmd_ixgbe/ixgbe_rxtx.c:1480: error: 'next_rxe' may be used uninitialized in this function > > > > The "missing initializer" warning is a GCC bug which seems fixed in 4.7. > > The same warning is thrown by clang. > > The "may be used uninitialized" warning is another GCC bug which seems fixed in 4.7. > > > > Fixes: 8eecb3295aed ("ixgbe: add LRO support") > > > > Signed-off-by: Thomas Monjalon > > Acked-by: Vlad Zolotarov Applied, thanks