Re: [PATCH bpf] libbpf: fix false uninitialized variable warning

2019-09-25 Thread Daniel Borkmann
On Wed, Sep 25, 2019 at 11:30:38AM -0700, Andrii Nakryiko wrote: > Some compilers emit warning for potential uninitialized next_id usage. > The code is correct, but control flow is too complicated for some > compilers to figure this out. Re-initialize next_id to satisfy > compiler. > > Signed-off-

[PATCH bpf] libbpf: fix false uninitialized variable warning

2019-09-25 Thread Andrii Nakryiko
Some compilers emit warning for potential uninitialized next_id usage. The code is correct, but control flow is too complicated for some compilers to figure this out. Re-initialize next_id to satisfy compiler. Signed-off-by: Andrii Nakryiko --- tools/lib/bpf/btf_dump.c | 1 + 1 file changed, 1 i