From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 532BDA046B for ; Sat, 29 Jun 2019 10:55:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6285E325F; Sat, 29 Jun 2019 10:55:15 +0200 (CEST) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id D893031FC for ; Sat, 29 Jun 2019 10:55:13 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 061CC21448; Sat, 29 Jun 2019 04:55:13 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 29 Jun 2019 04:55:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=mesmtp; bh=1hgaaUHhVaR9bauEy939slU GqNM44OxuuDq2d9s7kGE=; b=iGctQpmndPB/JBWRfhaB0PmlzOM377FjWKsQD9d VuJpBY1C4r+FX1bamX6ysZojkgy1KVIpiMAsifHPj0zOlRYB7aM2kS+8LdmkcupO LUB0GTH+M6jiTrogm0g7TfOgB+Jfkvk0ErPHP0vCbkfmSsU69Wc7Bt/3hsppITtM Ag0g= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=1hgaaU HhVaR9bauEy939slUGqNM44OxuuDq2d9s7kGE=; b=IsvinwNW4l2B3MGvhEjDqP a5eaEaKM0BGNQWieFIL5G9DQdA8z2Mx18Y61d451sA6TfCAyaPYuX+L/Zy9yIP8B +2MCYUbkjNYkVvYdf7jc64IiyXYesV4TIxUW+vbiiw61zXNH/l1ZlBQ133a3kT9O /GGwIKn6SRfZEvNmi8A4qzHZhKqfXVxmco3hDKG7rxzhHUmmc+8Fqxdp81iMzFU+ 6p8J9uPRouxFUW9a7xyY1Q44s/3kjELUK3cIR2nc2rKM4EwcLaVloIMjiaeHylkB Sy7ou1EVIJgf1ISqHZlYjqlz2hl5LpQheCQa3F/uxt0ktGDhOn2nBe6BdsDG+idg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrvddvgddutdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffogggtgfesthekredtre dtjeenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhho nhhjrghlohhnrdhnvghtqeenucfkphepjeejrddufeegrddvtdefrddukeegnecurfgrrh grmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtnecuvehl uhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 2BFE38005B; Sat, 29 Jun 2019 04:55:12 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: reshma.pattan@intel.com Date: Sat, 29 Jun 2019 10:55:07 +0200 Message-Id: <20190629085507.31808-1-thomas@monjalon.net> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] examples/l3fwd-power: fix build with gcc 4 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" error: ‘for’ loop initial declarations are only allowed in C99 mode Fixes: 609e79841fcf ("examples/l3fwd-power: add telemetry mode") Cc: reshma.pattan@intel.com Signed-off-by: Thomas Monjalon --- examples/l3fwd-power/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index fb2a9d62f..99c1208ce 100644 --- a/examples/l3fwd-power/main.c +++ b/examples/l3fwd-power/main.c @@ -2468,10 +2468,12 @@ main(int argc, char **argv) rte_eal_mp_remote_launch(main_empty_poll_loop, NULL, SKIP_MASTER); } else { + unsigned int i; + /* Init metrics library */ rte_metrics_init(rte_socket_id()); /** Register stats with metrics library */ - for (unsigned int i = 0; i < num_telstats; i++) + for (i = 0; i < num_telstats; i++) ptr_strings[i] = telstats_strings[i].name; ret = rte_metrics_reg_names(ptr_strings, num_telstats); -- 2.21.0