From: Martin Vajnar Date: Mon, 29 Sep 2014 19:10:59 +0000 (+0200) Subject: JORTE: ignore 'int-to-pointer' and 'pointer-to-int' compiler warnings X-Git-Url: https://rtime.felk.cvut.cz/gitweb/orte.git/commitdiff_plain/refs/heads/android JORTE: 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. --- diff --git a/orte/libjorte/Makefile.am b/orte/libjorte/Makefile.am index f3fe705..9ffd1f3 100644 --- a/orte/libjorte/Makefile.am +++ b/orte/libjorte/Makefile.am @@ -39,7 +39,7 @@ libjorte_la_LDFLAGS = \ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ -release $(LT_RELEASE) \ -export-dynamic -libjorte_la_CFLAGS = $(AM_CFLAGS) +libjorte_la_CFLAGS = $(AM_CFLAGS) -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast libjorte_la_LIBADD = $(top_builddir)/orte/liborte/liborte.la EXTRA_DIST = Makefile Makefile.omk \ diff --git a/orte/libjorte/Makefile.omk b/orte/libjorte/Makefile.omk index 3a89215..373f9d3 100644 --- a/orte/libjorte/Makefile.omk +++ b/orte/libjorte/Makefile.omk @@ -13,6 +13,7 @@ shared_LIBRARIES = jorte lib_LOADLIBES = orte INCLUDES = -I $(srcdir)/../include -I $(JAVA_HOME)/include -I $(JAVA_HOME)/include/linux +CFLAGS += -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast jorte_SOURCES = \ onLoad.c \