From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH 05/10] net/vmxnet3: fix compile error with gcc 7 Date: Thu, 4 May 2017 09:39:23 -0700 Message-ID: <20170504093923.6913c113@xeon-e3> References: <20170504153822.19461-1-bruce.richardson@intel.com> <20170504153822.19461-6-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 mail-pg0-f54.google.com (mail-pg0-f54.google.com [74.125.83.54]) by dpdk.org (Postfix) with ESMTP id 85C227CF8 for ; Thu, 4 May 2017 18:39:26 +0200 (CEST) Received: by mail-pg0-f54.google.com with SMTP id q4so3585611pga.3 for ; Thu, 04 May 2017 09:39:26 -0700 (PDT) In-Reply-To: <20170504153822.19461-6-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" On Thu, 4 May 2017 16:38:17 +0100 Bruce Richardson wrote: > diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c > index 0e8eb75..1cd72c1 100644 > --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c > +++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c > @@ -935,7 +935,7 @@ vmxnet3_dev_link_update(struct rte_eth_dev *dev, > __rte_unused int wait_to_complete) > { > struct vmxnet3_hw *hw = dev->data->dev_private; > - struct rte_eth_link old, link; > + struct rte_eth_link old = {0}, link; Please add space around the initializer. ie. struct rte_eth_link old = { 0 }, link;