summaryrefslogtreecommitdiffstats
path: root/macosx
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)
commit9791d0fb6cc2e5be9a55a0130ea4f9968296f767 (patch)
tree7ac25f3e77262da727f63a8f52818999151c6267 /macosx
parent1e47f50ee0ad2044b80ef9fc06b4998c3bc060f2 (diff)
downloadtcl-9791d0fb6cc2e5be9a55a0130ea4f9968296f767.zip
tcl-9791d0fb6cc2e5be9a55a0130ea4f9968296f767.tar.gz
tcl-9791d0fb6cc2e5be9a55a0130ea4f9968296f767.tar.bz2
Add -Wshadow flag to the compiler, so we will be notified when (accidently) shadowing variable names
Diffstat (limited to 'macosx')
-rw-r--r--macosx/Tcl-Common.xcconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/Tcl-Common.xcconfig b/macosx/Tcl-Common.xcconfig
index 0670479..39301db 100644
--- a/macosx/Tcl-Common.xcconfig
+++ b/macosx/Tcl-Common.xcconfig
@@ -19,7 +19,7 @@ GCC_NO_COMMON_BLOCKS = YES
GCC_DYNAMIC_NO_PIC = YES
GCC_VERSION = 4.2
GCC = gcc-$(GCC_VERSION)
-WARNING_CFLAGS = -Wall -Wwrite-strings -Wextra -Wdeclaration-after-statement -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-value -Winit-self -Wpointer-arith -Wcast-align -Wdisabled-optimization -Winline $(WARNING_CFLAGS)
+WARNING_CFLAGS = -Wall -Wextra -Wshadow -Wwrite-strings -Wpointer-arith -Wc++-compat -Wdeclaration-after-statement -Winit-self -Wcast-align -Wdisabled-optimization -Winline $(WARNING_CFLAGS)
BINDIR = $(PREFIX)/bin
CFLAGS = $(CFLAGS)
CPPFLAGS = -mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET) $(CPPFLAGS)