From a4173ce4093a29bd9cbd1877ab3bad516b60eee4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Thu, 9 Feb 2017 23:03:25 -0500 Subject: [PATCH] nitc: silence pointer to int cast warnings on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- src/compiler/abstract_compiler.nit | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler/abstract_compiler.nit b/src/compiler/abstract_compiler.nit index 8bdfdee..cd70510 100644 --- a/src/compiler/abstract_compiler.nit +++ b/src/compiler/abstract_compiler.nit @@ -410,6 +410,9 @@ ifeq ($(uname_S),MINGW64_NT-10.0) # Remove POSIX flag -lrt LDLIBS := $(filter-out -lrt,$(LDLIBS)) + + # Silence warnings when storing Int, Char and Bool as pointer address + CFLAGS += -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast endif """ -- 1.7.9.5