From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] test/test_external_mem: fix loop initialization Date: Tue, 23 Oct 2018 11:06:14 +0200 Message-ID: <1620738.05UcecG66J@xps> References: <20181023073535.16441-1-alialnu@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org To: Ali Alnubani Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 7885F5B26 for ; Tue, 23 Oct 2018 11:06:13 +0200 (CEST) In-Reply-To: <20181023073535.16441-1-alialnu@mellanox.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" 23/10/2018 09:35, Ali Alnubani: > Loop initial declarations are only allowed in C99 mode, > which causes a compilation failure on non C99 compliant systems: >=20 > test/test/test_external_mem.c: In function =E2=80=98test_external_mem=E2= =80=99: > test/test/test_external_mem.c:375:2: error: =E2=80=98for=E2=80=99 > loop initial declarations are only allowed in C99 mode > for (int i =3D 0; i < n_pages; i++) { > ^ >=20 > Reproduces on RHEL 7.4 with GCC 4.8.5 20150623 (Red Hat 4.8.5-16). >=20 > Fixes: b270daa43b3d ("test: support external memory") > Cc: anatoly.burakov@intel.com >=20 > Signed-off-by: Ali Alnubani There was already a patch from Dan Gora: http://patches.dpdk.org/patch/46921/