Re: [PATCH bpf-next] selftests/bpf: fix a compilation error

2019-04-17 Thread Alexei Starovoitov
On Wed, Apr 17, 2019 at 10:23 PM Yonghong Song wrote: > > I hit the following compilation error with gcc 4.8.5. > > prog_tests/flow_dissector.c: In function ‘test_flow_dissector’: > prog_tests/flow_dissector.c:155:2: error: ‘for’ loop initial declarations > are only allowed in C99 mode >

[PATCH bpf-next] selftests/bpf: fix a compilation error

2019-04-17 Thread Yonghong Song
I hit the following compilation error with gcc 4.8.5. prog_tests/flow_dissector.c: In function ‘test_flow_dissector’: prog_tests/flow_dissector.c:155:2: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 0; i < ARRAY_SIZE(tests); i++) { ^ prog_tests/flo