[config] Suppress implicit fallthrough
Change-Id: I37b187c912c69054d242002ec05e15c9c9db10ff
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/github.com/ARM-software/HWCPipe/+/527260
Reviewed-by: Shai Barack <shayba@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 12d78e4..68cabc9 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -7,6 +7,13 @@
defines = [ "HWCPIPE_NO_JSON" ]
}
+config("hwcpipe_warnings") {
+ cflags = [
+ "-Wno-conversion",
+ "-Wno-implicit-fallthrough",
+ ]
+}
+
source_set("mali_profiler") {
sources = [
"cpu_profiler.h",
@@ -19,6 +26,7 @@
"vendor/arm/mali/mali_profiler_magma.h",
]
public_configs = [ ":hwcpipe_config" ]
+ configs += [ ":hwcpipe_warnings" ]
configs -= [ "//build/config:no_exceptions" ]
# Disable ShadowCallStack, since there seem to be some issues with the call stack after exceptions
@@ -31,7 +39,4 @@
"//src/graphics/lib/magma/src/libmagma",
"//zircon/public/lib/zx",
]
-
- # TODO(fxb/58162): delete the below and fix compiler warnings
- configs += [ "//build/config:Wno-conversion" ]
}