From 88e8d8b01884c961bfdf4ae5b4b2702a4acde9af Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Thu, 6 Sep 2018 13:50:58 -0700 Subject: Suppress -Wimplicit-fallthrough. -Wimplicit-fallthrough will be enabled globally. Test: build with global -Wimplicit-fallthrough. Change-Id: I00fb9ed34cb378b42be1065082b1086ae2e2a36c --- LibParameter.mk | 1 + LibRemoteProcessor.mk | 2 ++ TestPlatform.mk | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/LibParameter.mk b/LibParameter.mk index 42084d5..b648f09 100644 --- a/LibParameter.mk +++ b/LibParameter.mk @@ -136,6 +136,7 @@ LOCAL_CFLAGS := -Wall -Werror LOCAL_CPPFLAGS := \ -frtti -fexceptions \ -Wno-instantiation-after-specialization \ + -Wno-implicit-fallthrough \ LOCAL_STATIC_LIBRARIES := \ libpfw_utility$(SUFFIX) \ diff --git a/LibRemoteProcessor.mk b/LibRemoteProcessor.mk index 320857d..90a344e 100644 --- a/LibRemoteProcessor.mk +++ b/LibRemoteProcessor.mk @@ -65,3 +65,5 @@ LOCAL_CFLAGS := \ -isystem $(LOCAL_PATH)/asio/include endif #ifeq ($(PFW_NETWORKING),false) + +LOCAL_CFLAGS += -Wno-implicit-fallthrough diff --git a/TestPlatform.mk b/TestPlatform.mk index 82d0842..66861b5 100644 --- a/TestPlatform.mk +++ b/TestPlatform.mk @@ -61,4 +61,4 @@ LOCAL_CFLAGS := \ endif #ifeq ($(PFW_NETWORKING),false) -LOCAL_CFLAGS += -Wall -Werror +LOCAL_CFLAGS += -Wall -Werror -Wno-implicit-fallthrough -- cgit v1.2.3