projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65bb2e0
)
libbpf: Disable -Wswitch-enum compiler warning
author
Andrii Nakryiko
<andriin@fb.com>
Tue, 18 Aug 2020 21:33:50 +0000
(14:33 -0700)
committer
Alexei Starovoitov
<ast@kernel.org>
Wed, 19 Aug 2020 00:16:15 +0000
(17:16 -0700)
That compilation warning is more annoying, than helpful.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link:
https://lore.kernel.org/bpf/20200818213356.2629020-2-andriin@fb.com
tools/lib/bpf/Makefile
patch
|
blob
|
history
diff --git
a/tools/lib/bpf/Makefile
b/tools/lib/bpf/Makefile
index
bf8ed13
..
95c946e
100644
(file)
--- a/
tools/lib/bpf/Makefile
+++ b/
tools/lib/bpf/Makefile
@@
-107,7
+107,7
@@
ifeq ($(feature-reallocarray), 0)
endif
# Append required CFLAGS
-override CFLAGS += $(EXTRA_WARNINGS)
+override CFLAGS += $(EXTRA_WARNINGS)
-Wno-switch-enum
override CFLAGS += -Werror -Wall
override CFLAGS += -fPIC
override CFLAGS += $(INCLUDES)