summaryrefslogtreecommitdiffstats
path: root/win/makefile.vc
diff options
context:
space:
mode:
authordavygrvy <davygrvy@pobox.com>2004-01-15 23:08:44 (GMT)
committerdavygrvy <davygrvy@pobox.com>2004-01-15 23:08:44 (GMT)
commitd511c80c1785590285da2bd542b05c44ff9706cb (patch)
treef1706ff1d4f1de73cb108a1e363d281f42f44c6f /win/makefile.vc
parent5395c7d1b8cccddff0a79a285db25c63834c1d8d (diff)
downloadtcl-d511c80c1785590285da2bd542b05c44ff9706cb.zip
tcl-d511c80c1785590285da2bd542b05c44ff9706cb.tar.gz
tcl-d511c80c1785590285da2bd542b05c44ff9706cb.tar.bz2
Added new logic to crank-up the warning levels for both compile
and link when $(FULLWARNINGS) is set.
Diffstat (limited to 'win/makefile.vc')
-rw-r--r--win/makefile.vc15
1 files changed, 13 insertions, 2 deletions
diff --git a/win/makefile.vc b/win/makefile.vc
index 86f481f..5115d67 100644
--- a/win/makefile.vc
+++ b/win/makefile.vc
@@ -12,7 +12,7 @@
# Copyright (c) 2001-2002 David Gravereaux.
#
#------------------------------------------------------------------------------
-# RCS: @(#) $Id: makefile.vc,v 1.116 2004/01/15 22:20:38 davygrvy Exp $
+# RCS: @(#) $Id: makefile.vc,v 1.117 2004/01/15 23:08:44 davygrvy Exp $
#------------------------------------------------------------------------------
!if "$(MSVCDIR)" == ""
@@ -356,7 +356,14 @@ cdebug = -Z7 -WX -Od
!endif
### Declarations common to all compiler options
-cflags = -nologo -c -W3 -YX -Fp$(TMP_DIR)^\
+cflags = -nologo -c -YX -Fp$(TMP_DIR)^\
+
+!if $(FULLWARNINGS)
+cflags = $(cflags) -W4
+!else
+cflags = $(cflags) -W3
+!endif
+
!if $(PENT_0F_ERRATA)
cflags = $(cflags) -QI0f
@@ -401,6 +408,10 @@ ldebug = -release -opt:ref -opt:icf,3
### Declarations common to all linker options
lflags = -nologo -machine:$(MACHINE) $(ldebug)
+!if $(FULLWARNINGS)
+lflags = $(lflags) -warn:3
+!endif
+
!if $(PROFILE)
lflags = $(lflags) -profile
!endif