diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-29 07:14:00 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-29 07:14:00 (GMT) |
commit | 2342babe990ebbf9e046143ce965996fc5701abc (patch) | |
tree | 7ac25f3e77262da727f63a8f52818999151c6267 /unix/tcl.m4 | |
parent | 6ac6380f7ae8d346a7fb90b68ec56018a87afc64 (diff) | |
download | tcl-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 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 056cf1f..ea3d968 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -966,7 +966,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ CFLAGS_DEBUG=-g AS_IF([test "$GCC" = yes], [ CFLAGS_OPTIMIZE=-O2 - CFLAGS_WARNING="-Wall -Wextra -Wwrite-strings -Wpointer-arith" + CFLAGS_WARNING="-Wall -Wextra -Wshadow -Wwrite-strings -Wpointer-arith" case "${CC}" in *++|*++-*) ;; |