From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 95001C522 for ; Thu, 23 Jun 2016 16:40:16 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP; 23 Jun 2016 07:40:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,517,1459839600"; d="scan'208";a="1003826027" Received: from sie-lab-214-174.ir.intel.com (HELO sie-lab-214-36.ir.intel.com) ([10.237.214.174]) by orsmga002.jf.intel.com with ESMTP; 23 Jun 2016 07:40:14 -0700 From: Pablo de Lara To: dev@dpdk.org Cc: helin.zhang@intel.com, Pablo de Lara Date: Thu, 23 Jun 2016 15:38:24 +0100 Message-Id: <1466692704-2811-1-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.5.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] kni: fix compilation with gcc 6.1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2016 14:40:17 -0000 Using gcc 6.1, in some cases, kni fails to compile because of unused variables: build/lib/librte_eal/linuxapp/kni/ixgbe_main.c:82:19: error: ‘ixgbe_copyright’ defined but not used [-Werror=unused-const-variable=] static const char ixgbe_copyright[] = ^~~~~~~~~~~~~~~ build/lib/librte_eal/linuxapp/kni/ixgbe_main.c:62:19: error: ‘ixgbe_driver_string’ defined but not used [-Werror=unused-const-variable=] static const char ixgbe_driver_string[] = Fixes: 3fc5ca2f6352 ("kni: initial import") Signed-off-by: Pablo de Lara --- lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c index 8c1d2fe..92fc9fc 100644 --- a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c +++ b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c @@ -59,8 +59,6 @@ #undef CONFIG_DCA_MODULE char ixgbe_driver_name[] = "ixgbe"; -static const char ixgbe_driver_string[] = - "Intel(R) 10 Gigabit PCI Express Network Driver"; #define DRV_HW_PERF #ifndef CONFIG_IXGBE_NAPI @@ -79,8 +77,6 @@ static const char ixgbe_driver_string[] = #define DRV_VERSION __stringify(MAJ) "." __stringify(MIN) "." \ __stringify(BUILD) DRIVERNAPI DRV_HW_PERF FPGA VMDQ_TAG const char ixgbe_driver_version[] = DRV_VERSION; -static const char ixgbe_copyright[] = - "Copyright (c) 1999-2012 Intel Corporation."; /* ixgbe_pci_tbl - PCI Device ID Table * -- 2.5.5