aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'native/jni/Android.mk')
-rw-r--r--native/jni/Android.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/native/jni/Android.mk b/native/jni/Android.mk
index 567648f7a..51aa4eabe 100644
--- a/native/jni/Android.mk
+++ b/native/jni/Android.mk
@@ -28,7 +28,12 @@ LATIN_IME_SRC_FULLPATH_DIR := $(LOCAL_PATH)/$(LATIN_IME_SRC_DIR)
LOCAL_C_INCLUDES += $(LATIN_IME_SRC_FULLPATH_DIR) $(LATIN_IME_SRC_FULLPATH_DIR)/gesture
-LOCAL_CFLAGS += -Werror -Wall
+LOCAL_CFLAGS += -Werror -Wall -Wextra -Weffc++ -Wformat=2 -Wcast-qual -Wcast-align \
+ -Wwrite-strings -Wfloat-equal -Wpointer-arith -Winit-self -Wredundant-decls -Wno-system-headers
+
+ifeq ($(TARGET_ARCH), arm)
+LOCAL_CFLAGS += -Winline
+endif
# To suppress compiler warnings for unused variables/functions used for debug features etc.
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-function
@@ -41,7 +46,6 @@ LATIN_IME_JNI_SRC_FILES := \
LATIN_IME_CORE_SRC_FILES := \
additional_proximity_chars.cpp \
- basechars.cpp \
bigram_dictionary.cpp \
char_utils.cpp \
correction.cpp \
@@ -50,6 +54,7 @@ LATIN_IME_CORE_SRC_FILES := \
proximity_info.cpp \
proximity_info_state.cpp \
unigram_dictionary.cpp \
+ words_priority_queue.cpp \
gesture/gesture_decoder_wrapper.cpp \
gesture/incremental_decoder_wrapper.cpp