Re: [PATCH] selftests/clone3: Add gun99 to compile in Makefile.

2020-11-26 Thread Christian Brauner
On Thu, Nov 26, 2020 at 03:12:14PM +0800, Xingxing Su wrote: > CFLAGS add -std=gnu99. > > Fllowing build error: > > test_core.c: In function ‘test_cgcore_destroy’: > test_core.c:87:2: error: ‘for’ loop initial declarations are only > allowed in C99 mode > for (int i = 0; i < 10; i++) { > ^ >

[PATCH] selftests/clone3: Add gun99 to compile in Makefile.

2020-11-25 Thread Xingxing Su
CFLAGS add -std=gnu99. Fllowing build error: test_core.c: In function ‘test_cgcore_destroy’: test_core.c:87:2: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 0; i < 10; i++) { ^ test_core.c:87:2: note: use option -std=c99 or -std=gnu99 to compile your code S