From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH] mbuf: Initialize all fields in struct rte_mbuf_sched Date: Fri, 25 Jan 2019 09:34:25 +1300 Message-ID: <20190125093425.78dc24bd@shemminger-XPS-13-9360> References: <1548340597-18556-1-git-send-email-ed.czeck@atomicrules.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, thomas@monjalon.net, olivier.matz@6wind.com, reshma.pattan@intel.com To: Ed Czeck Return-path: Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by dpdk.org (Postfix) with ESMTP id 8AD4B271 for ; Thu, 24 Jan 2019 21:34:35 +0100 (CET) Received: by mail-pf1-f194.google.com with SMTP id c123so3597212pfb.0 for ; Thu, 24 Jan 2019 12:34:35 -0800 (PST) In-Reply-To: <1548340597-18556-1-git-send-email-ed.czeck@atomicrules.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, 24 Jan 2019 09:36:37 -0500 Ed Czeck wrote: > g++ reports "error: missing initializer for member" > Fixes: 5d3f72100904 (mbuf: implement generic format for sched field) > > Signed-off-by: Ed Czeck > --- > lib/librte_mbuf/rte_mbuf.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h > index d716294..a7f6702 100644 > --- a/lib/librte_mbuf/rte_mbuf.h > +++ b/lib/librte_mbuf/rte_mbuf.h > @@ -2464,6 +2464,7 @@ rte_mbuf_sched_set(struct rte_mbuf *m, uint32_t queue_id, > .queue_id = queue_id, > .traffic_class = traffic_class, > .color = color, > + .reserved = 0, > }; > } > This only happens because C++ is picker than C.