summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Cheng <bccheng@google.com>2013-09-03 10:52:39 -0700
committerBen Cheng <bccheng@google.com>2013-09-04 13:51:36 -0700
commitc665df33e054f8ac48c98892e4c91754d86ebf6d (patch)
tree87a7cb0b57d42aa0a36389c65d971526c3ce454c
parentd171b6567023f7f840b3a145ec27b5723750dc18 (diff)
downloadsystem_core-c665df33e054f8ac48c98892e4c91754d86ebf6d.zip
system_core-c665df33e054f8ac48c98892e4c91754d86ebf6d.tar.gz
system_core-c665df33e054f8ac48c98892e4c91754d86ebf6d.tar.bz2
Add -Wno-unused-parameter to suppress the warning.
For example in system/core/libcorkscrew/arch-arm/backtrace-arm.c: system/core/libcorkscrew/arch-arm/backtrace-arm.c:555:49: error: unused parameter 'siginfo' [-Werror=unused-parameter] Change-Id: Ibe13e8761a2f57324c0f0d87d9add549a20aa37a
-rw-r--r--libcorkscrew/Android.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcorkscrew/Android.mk b/libcorkscrew/Android.mk
index d62c2d5..e275317 100644
--- a/libcorkscrew/Android.mk
+++ b/libcorkscrew/Android.mk
@@ -51,7 +51,7 @@ endif
LOCAL_SHARED_LIBRARIES += libdl libcutils liblog libgccdemangle
-LOCAL_CFLAGS += -std=gnu99 -Werror
+LOCAL_CFLAGS += -std=gnu99 -Werror -Wno-unused-parameter
LOCAL_MODULE := libcorkscrew
LOCAL_MODULE_TAGS := optional
@@ -81,7 +81,7 @@ ifeq ($(HOST_OS),linux)
LOCAL_SHARED_LIBRARIES += libgccdemangle # TODO: is this even needed on Linux?
LOCAL_LDLIBS += -lrt
endif
-LOCAL_CFLAGS += -std=gnu99 -Werror
+LOCAL_CFLAGS += -std=gnu99 -Werror -Wno-unused-parameter
LOCAL_MODULE := libcorkscrew
LOCAL_MODULE_TAGS := optional
include $(BUILD_HOST_SHARED_LIBRARY)