Re: [PATCH bpf-next] tools: bpftool: compile with $(EXTRA_WARNINGS)

2019-08-14 Thread Daniel Borkmann
On 8/14/19 1:37 PM, Quentin Monnet wrote: Compile bpftool with $(EXTRA_WARNINGS), as defined in scripts/Makefile.include, and fix the new warnings produced. Simply leave -Wswitch-enum out of the warning list, as we have several switch-case structures where it is not desirable to process all valu

[PATCH bpf-next] tools: bpftool: compile with $(EXTRA_WARNINGS)

2019-08-14 Thread Quentin Monnet
Compile bpftool with $(EXTRA_WARNINGS), as defined in scripts/Makefile.include, and fix the new warnings produced. Simply leave -Wswitch-enum out of the warning list, as we have several switch-case structures where it is not desirable to process all values of an enum. Remove -Wshadow from the war