aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-10-11 14:37:40 -0700
committerChih-hung Hsieh <chh@google.com>2017-10-19 21:17:02 +0000
commitc6097ca5e1f0fbca0efd80a321fa8ae0a2652823 (patch)
tree694cac66d6806864dfbbb0a421c5ae641c06acc1
parent37a3083841acc8d69e78889991dd4e6092f77445 (diff)
downloadv8-c6097ca5e1f0fbca0efd80a321fa8ae0a2652823.tar.gz
Use -Werror in external/v8
Bug: 66996870 Test: build with WITH_TIDY=1 Exempt-From-Owner-Approval: Android only -Wall found no new warning Change-Id: I1cec2abc9da9310278e77685bef68120501da67a
-rw-r--r--Android.libv8.mk2
-rw-r--r--Android.v8common.mk2
2 files changed, 4 insertions, 0 deletions
diff --git a/Android.libv8.mk b/Android.libv8.mk
index 465b8b41..1d96e6b1 100644
--- a/Android.libv8.mk
+++ b/Android.libv8.mk
@@ -8,6 +8,8 @@ include $(CLEAR_VARS)
LOCAL_MODULE := libv8
LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+LOCAL_CFLAGS := -Wall -Werror
+
LOCAL_WHOLE_STATIC_LIBRARIES := libv8base libv8platform libv8sampler libv8src libv8gen v8peephole
LOCAL_EXPORT_C_INCLUDE_DIRS := \
diff --git a/Android.v8common.mk b/Android.v8common.mk
index f0718a15..280fa355 100644
--- a/Android.v8common.mk
+++ b/Android.v8common.mk
@@ -3,6 +3,8 @@ LOCAL_CXX_STL := libc++
LOCAL_CPP_EXTENSION := cc
LOCAL_CFLAGS += \
+ -Wall \
+ -Werror \
-Wno-endif-labels \
-Wno-import \
-Wno-format \