From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kBG3a15aMV5nNXqemYJ3TmooD7nWmZuhGTZJr+WCtlg=; b=TYqNhfZ1hxOm2MDZ0nrN6ICtH4wjM8FSCBsXD13ZyUtP6YA/aSRB8wD2+zajxqeG8G XH5gBkTCqDKn3FIpaMX5A+rzV+tr/3ym/5i1pyC1ETCgwE6XZ3Oyz+RFF3hoUYkxDH4K SDkNBUGmNLw+jlPxwy33CNJ4+Do2UZ/3AF/cwyu7EoXpZYUqGzCYEsu8O5CEmAPDg00I 2ytyiLG4lTtEcWgeoxT3Bgizg8Cqz++BwO6MG5g1qAapv5ysy3ZFghPlgOZ3kAnpI10y XSD1bQTAErLK3hCq39mY6nNMMB1LYn6p7hHbDPmNpd4Cyd0CY4ftgFqywcGw4WAtXuXj 1a8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kBG3a15aMV5nNXqemYJ3TmooD7nWmZuhGTZJr+WCtlg=; b=GUrXblOPQRSpT5/Zvgfocjr+c6QxkQL+kEE9wq2TiMtDqUEkJVDTTM1bEQ+n4h/iuK Ejgx+47m+cCocUWaTEdJpzNgYZ0nz91RirjyyrBpjxAnqMFzRAGSGQXWBpBBBkaeC0R7 FBrQNAw/n4YU6MVMaoFYCIExln/QJTSTeIM9HF3hKpRbxWroPATB2C7tDavZiCHeHcJT iBAutY6n9972KQVIcEXY2mXiRu3Bq4HIGrUPB1SGkZjKEc7FT8W7K2owrVoQ3sH75Huk /xnMHewH9gvcomnLme0Sxs3UIQWDpwKZiHSvgtv6rgN6iVMQ5dmTg2MG5EFKhmSDlXq0 LHuA== X-Gm-Message-State: AJcUukcsDHFBTmeikk0nGbZ8o/zAt7xQFgVVJDP/gKEG/KDRysrdbTez t7XblrvHOINxpWsIzUxUzsc/yg== X-Google-Smtp-Source: ALg8bN5Ve3NMLS7u9648Je6qpVZvusl0CZ2P7wJo0FrWps7EznGToKREXK5u87DxMzgb3bbTR0cS/g== X-Received: by 2002:a63:5a57:: with SMTP id k23mr7262043pgm.5.1548362074467; Thu, 24 Jan 2019 12:34:34 -0800 (PST) Received: from shemminger-XPS-13-9360 ([202.36.179.100]) by smtp.gmail.com with ESMTPSA id o66sm38796649pgo.75.2019.01.24.12.34.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Jan 2019 12:34:34 -0800 (PST) Date: Fri, 25 Jan 2019 09:34:25 +1300 From: Stephen Hemminger To: Ed Czeck Cc: dev@dpdk.org, thomas@monjalon.net, olivier.matz@6wind.com, reshma.pattan@intel.com Message-ID: <20190125093425.78dc24bd@shemminger-XPS-13-9360> In-Reply-To: <1548340597-18556-1-git-send-email-ed.czeck@atomicrules.com> 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 Subject: Re: [dpdk-dev] [PATCH] mbuf: Initialize all fields in struct rte_mbuf_sched 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, 24 Jan 2019 20:34:35 -0000 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.