Re: [PATCH bpf-next 1/7] libbpf: disable -Wswitch-enum compiler warning

2020-08-18 Thread Yonghong Song
On 8/18/20 6:39 PM, Andrii Nakryiko wrote: On Tue, Aug 18, 2020 at 6:23 PM Yonghong Song wrote: On 8/18/20 2:33 PM, Andrii Nakryiko wrote: That compilation warning is more annoying, than helpful. Curious which compiler and which version caused this issue? I did not hit with gcc 8.2 or

Re: [PATCH bpf-next 1/7] libbpf: disable -Wswitch-enum compiler warning

2020-08-18 Thread Andrii Nakryiko
On Tue, Aug 18, 2020 at 6:23 PM Yonghong Song wrote: > > > > On 8/18/20 2:33 PM, Andrii Nakryiko wrote: > > That compilation warning is more annoying, than helpful. > > Curious which compiler and which version caused this issue? > I did not hit with gcc 8.2 or latest clang in my environment. > St

Re: [PATCH bpf-next 1/7] libbpf: disable -Wswitch-enum compiler warning

2020-08-18 Thread Yonghong Song
On 8/18/20 2:33 PM, Andrii Nakryiko wrote: That compilation warning is more annoying, than helpful. Curious which compiler and which version caused this issue? I did not hit with gcc 8.2 or latest clang in my environment. Signed-off-by: Andrii Nakryiko --- tools/lib/bpf/Makefile | 2 +-

[PATCH bpf-next 1/7] libbpf: disable -Wswitch-enum compiler warning

2020-08-18 Thread Andrii Nakryiko
That compilation warning is more annoying, than helpful. Signed-off-by: Andrii Nakryiko --- tools/lib/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile index bf8ed134cb8a..95c946e94ca5 100644 --- a/tools/lib/bpf/Makef

[RFC PATCH bpf-next 1/7] libbpf: disable -Wswitch-enum compiler warning

2020-08-07 Thread Andrii Nakryiko
That compilation warning is more annoying, than helpful. Signed-off-by: Andrii Nakryiko --- tools/lib/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile index bf8ed134cb8a..95c946e94ca5 100644 --- a/tools/lib/bpf/Makef