Re: [PATCH v2] selftests/clone3: Fix build error

2020-12-07 Thread Shuah Khan
On 11/26/20 8:16 PM, Xingxing Su wrote: When compiling the selftests with the -std=gnu99 option the build can fail with. Following 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

[PATCH v2] selftests/clone3: Fix build error

2020-11-26 Thread Xingxing Su
When compiling the selftests with the -std=gnu99 option the build can fail with. Following 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.