aboutsummaryrefslogtreecommitdiffstats
path: root/native/Android.mk
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2011-03-19 09:16:42 +0900
committerKen Wakasa <kwakasa@google.com>2011-03-19 10:12:15 +0900
commitde3070a71b39742c3ac7b613f45af88cc95c1205 (patch)
treeb64b9eb727186b73ee5878af76dce731f7419d10 /native/Android.mk
parent0a7cf81ca297f511e0d0d2478a792014d0b62945 (diff)
downloadlatinime-de3070a71b39742c3ac7b613f45af88cc95c1205.tar.gz
latinime-de3070a71b39742c3ac7b613f45af88cc95c1205.tar.xz
latinime-de3070a71b39742c3ac7b613f45af88cc95c1205.zip
Add -Werror flag to catch more warnings and errors
Change-Id: I9c39ba24578931944aae8182918ed48a2e82eb39
Diffstat (limited to 'native/Android.mk')
-rw-r--r--native/Android.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/native/Android.mk b/native/Android.mk
index c8342e31f..4727b1e39 100644
--- a/native/Android.mk
+++ b/native/Android.mk
@@ -3,6 +3,11 @@ include $(CLEAR_VARS)
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src
+LOCAL_CFLAGS += -Werror -Wall
+
+# To suppress compiler warnings for unused variables/functions used for debug features etc.
+LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-function
+
LOCAL_SRC_FILES := \
jni/com_android_inputmethod_keyboard_ProximityInfo.cpp \
jni/com_android_inputmethod_latin_BinaryDictionary.cpp \