summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Android.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 6c71d0c..5fe3a68 100644
--- a/Android.mk
+++ b/Android.mk
@@ -9,6 +9,9 @@ LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/cxcore/include
LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
+# cxmathfuncs.cpp has implicit cast of int struct fields.
+LOCAL_CLANG_CFLAGS += -Wno-c++11-narrowing
+
LOCAL_SRC_FILES := \
cxcore/src/cxalloc.cpp \
cxcore/src/cxarithm.cpp \
@@ -234,6 +237,9 @@ LOCAL_SHARED_LIBRARIES += libjpeg
LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%) -DHAVE_JPEG
+# grfmt_tiff.cpp has implicit cast of int struct fields.
+LOCAL_CLANG_CFLAGS += -Wno-c++11-narrowing
+
LOCAL_SRC_FILES := \
otherlibs/highgui/bitstrm.cpp \
otherlibs/highgui/grfmt_base.cpp \