]> rtime.felk.cvut.cz Git - orte.git/commitdiff
ANDROID: ignore 'int-to-pointer' and 'pointer-to-int' compiler warnings
authorMartin Vajnar <martin.vajnar@gmail.com>
Mon, 29 Sep 2014 18:50:40 +0000 (20:50 +0200)
committerMartin Vajnar <martin.vajnar@gmail.com>
Mon, 29 Sep 2014 18:50:40 +0000 (20:50 +0200)
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.

orte/libaorte/jni/Android.mk

index 6299530a67a0f0156a21e996ffacdea154d4727d..ea5b3f1639078eb38e4519cb601faa75ebd023a1 100644 (file)
@@ -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)