diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-02-28 12:05:02 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-02-28 12:05:02 (GMT) |
commit | 1d2fbf0b67d3ebfca3632d712654d9bc01af76dd (patch) | |
tree | 2ec07b8daf001f18e7432b25d0c9167aaa3838ec /unix/tcl.m4 | |
parent | 8ef8de11eed562a7015b9e8ff11a6a77124b1d19 (diff) | |
parent | 4d4bf9a051a30dad87a2b518e2641851b702dd3c (diff) | |
download | tk-1d2fbf0b67d3ebfca3632d712654d9bc01af76dd.zip tk-1d2fbf0b67d3ebfca3632d712654d9bc01af76dd.tar.gz tk-1d2fbf0b67d3ebfca3632d712654d9bc01af76dd.tar.bz2 |
Implement TIP #557: C++ support for Tcl
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 2547d1e..271bd03 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -966,7 +966,15 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ CFLAGS_DEBUG=-g AS_IF([test "$GCC" = yes], [ 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 + ], [ CFLAGS_OPTIMIZE=-O CFLAGS_WARNING="" |