nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61c7679
)
nitc: silence pointer to int cast warnings on Windows
author
Alexis Laferrière
<alexis.laf@xymus.net>
Fri, 10 Feb 2017 04:03:25 +0000
(23:03 -0500)
committer
Alexis 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
patch
|
blob
|
history
diff --git
a/src/compiler/abstract_compiler.nit
b/src/compiler/abstract_compiler.nit
index
8bdfdee
..
cd70510
100644
(file)
--- 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
"""