aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhengwang Ruan <ruanzw@xiaopeng.com>2019-05-02 15:44:13 +0800
committerVincent Guittot <vincent.guitto@linaro.org>2019-05-02 10:51:27 +0200
commit5ead8481bc9b315dfd71e0d34384d1cc7a923007 (patch)
treead744cceef1e104ca67d11945be2a43a0be7269d
parent7a0b53585c0d39c15ad5a91be6cedf06f30b91a8 (diff)
Android.mk: fix compiling errors caused by unused parametersHEADmaster
Android enables '-Wall -Werror' compiling parameters by default, as a result compiling errors are caused in cpuidle and utils, so add '-Wno-error' to disable this check. Signed-off-by: Zhengwang Ruan <ruanzw@xiaopeng.com>
-rw-r--r--cpuidle/Android.mk1
-rw-r--r--utils/Android.mk1
2 files changed, 2 insertions, 0 deletions
diff --git a/cpuidle/Android.mk b/cpuidle/Android.mk
index f0dc52d..041b7f6 100644
--- a/cpuidle/Android.mk
+++ b/cpuidle/Android.mk
@@ -23,6 +23,7 @@ LOCAL_MODULE := cpuidle_killer
systemtarball: cpuidle_killer
systemimage: cpuidle_killer
LOCAL_SRC_FILES:= cpuidle_killer.c
+LOCAL_CFLAGS += -Wno-error
LOCAL_SHARED_LIBRARIES := libcutils libc
LOCAL_MODULE_TAGS := tests
LOCAL_MODULE_PATH := $(TARGET_OUT_EXECUTABLES)/pm-qa/$(module_name)
diff --git a/utils/Android.mk b/utils/Android.mk
index 0fee7bf..6484bfc 100644
--- a/utils/Android.mk
+++ b/utils/Android.mk
@@ -11,6 +11,7 @@ define $(module_name)_etc_add_executable
systemtarball: $1
systemimage: $1
LOCAL_SRC_FILES := $1.c
+ LOCAL_CFLAGS += -Wno-error
LOCAL_MODULE_PATH := $(TARGET_OUT_EXECUTABLES)/pm-qa/$(module_name)
include $(BUILD_EXECUTABLE)
endef