From: Martin Vajnar Date: Mon, 29 Sep 2014 18:50:40 +0000 (+0200) Subject: ANDROID: ignore 'int-to-pointer' and 'pointer-to-int' compiler warnings X-Git-Url: https://rtime.felk.cvut.cz/gitweb/orte.git/commitdiff_plain/c1eacaaaabda70e605c8b1c5fbcef9253bd311ac ANDROID: ignore 'int-to-pointer' and 'pointer-to-int' compiler warnings Ignore int-to-pointer and pointer-to-int compiler conversion warnings, since we are storing 32-bit (64-bit) pointers in 64-bit java fields. This should make the output of 'ndk-build' script more readable. --- diff --git a/orte/libaorte/jni/Android.mk b/orte/libaorte/jni/Android.mk index 6299530..ea5b3f1 100644 --- a/orte/libaorte/jni/Android.mk +++ b/orte/libaorte/jni/Android.mk @@ -57,7 +57,7 @@ include $(CLEAR_VARS) LOCAL_MODULE := jorte LOCAL_C_INCLUDES := $(LOCAL_PATH)/include LOCAL_LDLIBS := -llog -LOCAL_CFLAGS += -Wall +LOCAL_CFLAGS += -Wall -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast LOCAL_SRC_FILES := \ libjorte/onLoad.c \ libjorte/getNtpTime.c \ @@ -106,4 +106,4 @@ libjorte/JStringToIPAddress.c LOCAL_STATIC_LIBRARIES := orte -include $(BUILD_SHARED_LIBRARY) \ No newline at end of file +include $(BUILD_SHARED_LIBRARY)