Re: [PATCH bpf-next 1/7] tools: bpftool: silence 'missing initializer' warnings

2018-03-09 Thread Jiri Benc
On Thu, 8 Mar 2018 23:38:12 -0800, Jakub Kicinski wrote: > FWIW I couldn't reproduce this one. Out of curiosity what GCC did you > use? gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16) Jiri

Re: [PATCH bpf-next 1/7] tools: bpftool: silence 'missing initializer' warnings

2018-03-08 Thread Jakub Kicinski
On Thu, 8 Mar 2018 23:00:35 +0100, Jiri Benc wrote: > When building bpf tool, gcc emits piles of warnings: > > prog.c: In function ‘prog_fd_by_tag’: > prog.c:101:9: warning: missing initializer for field ‘type’ of ‘struct > bpf_prog_info’ [-Wmissing-field-initializers] > struct bpf_prog_info i

[PATCH bpf-next 1/7] tools: bpftool: silence 'missing initializer' warnings

2018-03-08 Thread Jiri Benc
When building bpf tool, gcc emits piles of warnings: prog.c: In function ‘prog_fd_by_tag’: prog.c:101:9: warning: missing initializer for field ‘type’ of ‘struct bpf_prog_info’ [-Wmissing-field-initializers] struct bpf_prog_info info = {}; ^ In file included from /home/storage/jbenc/gi