summaryrefslogtreecommitdiffstats
path: root/unix/configure
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-02-28 12:05:02 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-02-28 12:05:02 (GMT)
commit1d2fbf0b67d3ebfca3632d712654d9bc01af76dd (patch)
tree2ec07b8daf001f18e7432b25d0c9167aaa3838ec /unix/configure
parent8ef8de11eed562a7015b9e8ff11a6a77124b1d19 (diff)
parent4d4bf9a051a30dad87a2b518e2641851b702dd3c (diff)
downloadtk-1d2fbf0b67d3ebfca3632d712654d9bc01af76dd.zip
tk-1d2fbf0b67d3ebfca3632d712654d9bc01af76dd.tar.gz
tk-1d2fbf0b67d3ebfca3632d712654d9bc01af76dd.tar.bz2
Implement TIP #557: C++ support for Tcl
Diffstat (limited to 'unix/configure')
-rwxr-xr-xunix/configure10
1 files changed, 9 insertions, 1 deletions
diff --git a/unix/configure b/unix/configure
index f05e8f8..2d64dcc 100755
--- a/unix/configure
+++ b/unix/configure
@@ -4239,7 +4239,15 @@ fi
if test "$GCC" = yes; then :
CFLAGS_OPTIMIZE=-O2
- CFLAGS_WARNING="-Wall -Wwrite-strings -Wsign-compare -Wdeclaration-after-statement -Wpointer-arith"
+ CFLAGS_WARNING="-Wall -Wextra -Wwrite-strings -Wpointer-arith"
+ case "${CC}" in
+ *++)
+ ;;
+ *)
+ CFLAGS_WARNING="${CFLAGS_WARNING} -Wc++-compat -Wdeclaration-after-statement"
+ ;;
+ esac
+
else