nitc: silence pointer to int cast warnings on Windows
[nit.git] / 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
 
 """