summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavygrvy@pobox.com <davygrvy>2004-01-15 23:08:44 (GMT)
committerdavygrvy@pobox.com <davygrvy>2004-01-15 23:08:44 (GMT)
commit9972290b6cd97c89dea79dd8ac022d18c41d0af4 (patch)
treef1706ff1d4f1de73cb108a1e363d281f42f44c6f
parent84b3276af2d193ea681809ad6528d678246eee7e (diff)
downloadtcl-9972290b6cd97c89dea79dd8ac022d18c41d0af4.zip
tcl-9972290b6cd97c89dea79dd8ac022d18c41d0af4.tar.gz
tcl-9972290b6cd97c89dea79dd8ac022d18c41d0af4.tar.bz2
Added new logic to crank-up the warning levels for both compile
and link when $(FULLWARNINGS) is set.
-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