aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2020-08-18 14:33:50 -0700
committerAlexei Starovoitov <[email protected]>2020-08-18 17:16:15 -0700
commit8d708236058601f1b08b0ca2a1cd9fff28034416 (patch)
treea63a619bc9aa72891cb2b26374ef193b922beec2
parent65bb2e0fc5a67200db95911207ef9662aaf7ab9d (diff)
libbpf: Disable -Wswitch-enum compiler warning
That compilation warning is more annoying, than helpful. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
-rw-r--r--tools/lib/bpf/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile
index bf8ed134cb8a..95c946e94ca5 100644
--- 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)