summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-09-06 13:50:58 -0700
committerChih-Hung Hsieh <chh@google.com>2018-09-06 13:50:58 -0700
commit88e8d8b01884c961bfdf4ae5b4b2702a4acde9af (patch)
tree2b0dcef6b366847d460d63b6a85a7de08ef0be8f
parent2da0f098f1cef30e9c24b99e02c7d9d65abdc9fb (diff)
downloadparameter-framework-master-cuttlefish-testing-release.tar.gz
-Wimplicit-fallthrough will be enabled globally. Test: build with global -Wimplicit-fallthrough. Change-Id: I00fb9ed34cb378b42be1065082b1086ae2e2a36c
-rw-r--r--LibParameter.mk1
-rw-r--r--LibRemoteProcessor.mk2
-rw-r--r--TestPlatform.mk2
3 files changed, 4 insertions, 1 deletions
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