From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id D9B177CCF for ; Thu, 4 May 2017 17:38:30 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 May 2017 08:38:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,287,1491289200"; d="scan'208";a="97638711" Received: from sivswdev01.ir.intel.com ([10.237.217.45]) by fmsmga006.fm.intel.com with ESMTP; 04 May 2017 08:38:28 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Date: Thu, 4 May 2017 16:38:12 +0100 Message-Id: <20170504153822.19461-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.8.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 00/10] Enable DPDK core build with gcc 7 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 May 2017 15:38:31 -0000 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 app/test-pmd/cmdline.c | 2 ++ drivers/net/bnx2x/ecore_sp.c | 2 +- drivers/net/bnx2x/elink.c | 3 +++ drivers/net/e1000/Makefile | 3 +++ drivers/net/fm10k/Makefile | 3 +++ drivers/net/ixgbe/Makefile | 3 +++ drivers/net/ixgbe/ixgbe_fdir.c | 2 ++ drivers/net/qede/Makefile | 3 +++ drivers/net/vmxnet3/vmxnet3_ethdev.c | 2 +- lib/librte_cmdline/cmdline_parse_num.c | 4 ++-- lib/librte_hash/rte_hash_crc.h | 6 ++++++ lib/librte_mbuf/rte_mbuf.h | 4 ++++ lib/librte_net/rte_net_crc.c | 2 +- mk/toolchain/gcc/rte.vars.mk | 7 +++++++ test/test/test_cmdline_num.c | 1 + test/test/test_eventdev_sw.c | 2 +- 16 files changed, 43 insertions(+), 6 deletions(-) -- 2.9.3