This commit adds `-Wno-implicit-fallthrough` to disable implicit
fallthrough warnings. This commit is required because the latest
LLVM/Clang toolchain emits more warnings. Since `third_party/llvm-7.0`
is an upstream project, we don't want to locally patch the code. Thus,
we are disabling implicit fallthrough warnings before it has been fixed
in the upstream.
Bug: b/
115344057
Test: Build libGLESv2_swiftshader for Android
Change-Id: Ibde53e030ba66af20ba5281b33a684350ef4b35f
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/25529
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Logan Chien <loganchien@google.com>
LOCAL_CFLAGS += -fno-operator-names -msse2 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS
LOCAL_CFLAGS += -DANDROID_PLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
LOCAL_CFLAGS += -U_FORTIFY_SOURCE
+LOCAL_CFLAGS += -Wno-implicit-fallthrough
LOCAL_CPPFLAGS += -std=c++11