diff options
author | apnadkarni <apnadkarni@noemail.net> | 2017-09-19 16:43:19 (GMT) |
---|---|---|
committer | apnadkarni <apnadkarni@noemail.net> | 2017-09-19 16:43:19 (GMT) |
commit | f47ec169e63a568b1ae9553c2b95e5c060253c31 (patch) | |
tree | 140cdfd8b884f8c2571de474a21a4ee06ec73bf9 /win | |
parent | 0312a89a170194bc6c08e8005d24712f28156735 (diff) | |
download | tcl-f47ec169e63a568b1ae9553c2b95e5c060253c31.zip tcl-f47ec169e63a568b1ae9553c2b95e5c060253c31.tar.gz tcl-f47ec169e63a568b1ae9553c2b95e5c060253c31.tar.bz2 |
Disable pointer<->int warnings related to cast between different sizes
There are a gadzillion of these due to use of ClientData and clutter up compiler
output increasing chance of a real warning getting lost. So disable them.
Eventually some day, Tcl will be 64-bit clean.
FossilOrigin-Name: efdaaeb661af7e3d3cb6cce0f992e6fab7ecddf7c76de2429d57b244d89e4bc1
Diffstat (limited to 'win')
-rw-r--r-- | win/makefile.vc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/win/makefile.vc b/win/makefile.vc index 4da9da7..e82b288 100644 --- a/win/makefile.vc +++ b/win/makefile.vc @@ -482,6 +482,13 @@ cdebug = -Zi -WX $(DEBUGFLAGS) ### Declarations common to all compiler options
cwarn = $(WARNINGS) -D _CRT_SECURE_NO_DEPRECATE -D _CRT_NONSTDC_NO_DEPRECATE
+!if "$(MACHINE)" == "AMD64"
+# Disable pointer<->int warnings related to cast between different sizes
+# There are a gadzillion of these due to use of ClientData and clutter up compiler
+# output increasing chance of a real warning getting lost. So disable them.
+# Eventually some day, Tcl will be 64-bit clean.
+cwarn = $(cwarn) -wd4311 -wd4312
+!endif
cflags = -nologo -c $(COMPILERFLAGS) $(cwarn) -Fp$(TMP_DIR)^\
!if $(MSVCRT)
|