[dpdk-dev] [PATCH] test/test_external_mem: fix loop initialization

Thomas Monjalon thomas at monjalon.net
Tue Oct 23 11:06:14 CEST 2018


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:
> 
> test/test/test_external_mem.c: In function ‘test_external_mem’:
> test/test/test_external_mem.c:375:2: error: ‘for’
> loop initial declarations are only allowed in C99 mode
>   for (int i = 0; i < n_pages; i++) {
>   ^
> 
> Reproduces on RHEL 7.4 with GCC 4.8.5 20150623 (Red Hat 4.8.5-16).
> 
> Fixes: b270daa43b3d ("test: support external memory")
> Cc: anatoly.burakov at intel.com
> 
> Signed-off-by: Ali Alnubani <alialnu at mellanox.com>

There was already a patch from Dan Gora:
	http://patches.dpdk.org/patch/46921/





More information about the dev mailing list