From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 00/10] Enable DPDK core build with gcc 7 Date: Fri, 05 May 2017 18:38:02 +0200 Message-ID: <2134695.mchbAGrloH@xps> References: <20170504153822.19461-1-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Bruce Richardson Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 216492986 for ; Fri, 5 May 2017 18:38:04 +0200 (CEST) In-Reply-To: <20170504153822.19461-1-bruce.richardson@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 04/05/2017 17:38, Bruce Richardson: > Since GCC 7 is now yesterday's news :-), I figured we should try and make > DPDK compile successfully with that new version. The main difficulties are > because of new warnings being triggered. > > * New warnings for fall-though in case statements > * New warnings for possible truncation using snprintf > * New warnings about uninitialized values. > > This set of patches fixes or works around those new issues, fixing a couple of > bugs in the process, so that DPDK can compile using gcc 7. > > NOTE: this set only covers the basic DPDK libs, apps and tests. It does not > cover the example apps, which still have issues. > > Bruce Richardson (10): > mk: adjust gcc flags for new gcc 7 warnings > drivers/net: disable new gcc 7 warnings for base code > net/bnx2x: fix warnings about switch fall-through > net/ixgbe: fix gcc 7 warning for switch fallthrough > net/vmxnet3: fix compile error with gcc 7 > lib: fix gcc 7 warnings for switch fall-through > net: fix missing break inside conditional compile block > app/testpmd: document explicit switch fall-through > test/test: fix missing break in switch > test/test: fix gcc 7 compiler error Applied (with small space fixes), thanks