From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 008A637AF for ; Tue, 31 Jul 2018 19:05:43 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 4EE7121F6F; Tue, 31 Jul 2018 13:05:43 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 31 Jul 2018 13:05:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=U9J5oa9qW1vJeLLMQGM7Q9sjm7 Fv+CQ1qkQtEyzri7s=; b=XHN3OGatUBcILvLkSHgkxDdRLzxdCjHFFOt5Kaz42v GqGF0U0EON4jjde9ZvGnal/Vfjmot75KkKHSYQC/FyNHWbjW/jXw+JFraMAfVb+/ Ha46/e2mzggvZVDDxdv8CPHqZwi3JQ/PwMZkMFbbZ3Mw4v/XLBJR7CiUsqFD714W E= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=U9J5oa 9qW1vJeLLMQGM7Q9sjm7Fv+CQ1qkQtEyzri7s=; b=SxAChXf9MPd+UswsRIwrNK BsCtMxy6wrEsu5JZLhDFUn4aW7HUBKEJHJTBiUI3CZ5I0lLs07p1vVDhEx2eIu+C yYIl2eKPkp3pvoOWJ6tGnff66+PrzAitz0DCGziBD0dA3Ga6ovzHXhT48wFHeHY1 G7/K96bVb9icR642hhAa2LD/Vg2JVP0+6AuwvEM7x8xKNRHdk+GfB3nH+qKENUh6 LxZvUJgvoO5XKO7TWbdG4jNBXLvN+RJ5nmuKHQvNhtTfKp5/Uw8xTnFQWFNgq04h 5yxHWcXOn+69UKfd75+6PXLDPkc5/wSW7VeRLiPfK7VaFyJ2YZCjfI6itvhTqk3w == X-ME-Proxy: X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 59CA310268; Tue, 31 Jul 2018 13:05:42 -0400 (EDT) From: Thomas Monjalon To: Reshma Pattan , Naga Suresh Somarowthu Cc: dev@dpdk.org, anatoly.burakov@intel.com, jananeex.m.parthasarathy@intel.com Date: Tue, 31 Jul 2018 19:05:37 +0200 Message-ID: <2377661.dBTvqWlEOu@xps> In-Reply-To: <1533055256-10317-4-git-send-email-reshma.pattan@intel.com> References: <1533055256-10317-1-git-send-email-reshma.pattan@intel.com> <1533055256-10317-4-git-send-email-reshma.pattan@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v9 3/5] test: add unit tests for latencystats library 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: Tue, 31 Jul 2018 17:05:44 -0000 31/07/2018 18:40, Reshma Pattan: > From: Naga Suresh Somarowthu > > Unit Test Cases added for latencystats library. > > Signed-off-by: Naga Suresh Somarowthu > Reviewed-by: Reshma Pattan > --- Compilation error with clang: > + struct rte_metric_name names[NUM_STATS] = { 0 }; test_latencystats.c:73:46: fatal error: suggest braces around initialization of subobject [-Wmissing-braces] > + struct rte_metric_name wrongnames[NUM_STATS - 2] = { 0 }; Usually, it is recommended to use memset for initializations of structs.