nitc: silence pointer to int cast warnings on Windows
authorAlexis Laferrière <alexis.laf@xymus.net>
Fri, 10 Feb 2017 04:03:25 +0000 (23:03 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Fri, 10 Feb 2017 19:59:30 +0000 (14:59 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/compiler/abstract_compiler.nit

index 8bdfdee..cd70510 100644 (file)
@@ -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
 
 """