summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-29 07:14:00 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-29 07:14:00 (GMT)
commit2342babe990ebbf9e046143ce965996fc5701abc (patch)
tree7ac25f3e77262da727f63a8f52818999151c6267 /win
parent6ac6380f7ae8d346a7fb90b68ec56018a87afc64 (diff)
downloadtcl-2342babe990ebbf9e046143ce965996fc5701abc.zip
tcl-2342babe990ebbf9e046143ce965996fc5701abc.tar.gz
tcl-2342babe990ebbf9e046143ce965996fc5701abc.tar.bz2
Add -Wshadow flag to the compiler, so we will be notified when (accidently) shadowing variable names
Diffstat (limited to 'win')
-rwxr-xr-xwin/configure2
-rw-r--r--win/tcl.m42
2 files changed, 2 insertions, 2 deletions
diff --git a/win/configure b/win/configure
index f099510..7ad386c 100755
--- a/win/configure
+++ b/win/configure
@@ -4216,7 +4216,7 @@ $as_echo "using shared flags" >&6; }
CFLAGS_DEBUG=-g
CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
- CFLAGS_WARNING="-Wall -Wextra -Wwrite-strings -Wpointer-arith"
+ CFLAGS_WARNING="-Wall -Wextra -Wshadow -Wwrite-strings -Wpointer-arith"
LDFLAGS_DEBUG=
LDFLAGS_OPTIMIZE=
diff --git a/win/tcl.m4 b/win/tcl.m4
index 4824e8e..989ea76 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -673,7 +673,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
CFLAGS_DEBUG=-g
CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
- CFLAGS_WARNING="-Wall -Wextra -Wwrite-strings -Wpointer-arith"
+ CFLAGS_WARNING="-Wall -Wextra -Wshadow -Wwrite-strings -Wpointer-arith"
LDFLAGS_DEBUG=
LDFLAGS_OPTIMIZE=