diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-01-11 14:10:33 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-01-11 14:10:33 (GMT) |
commit | e6d3efd5e198449f5a21a738187602c82475c40b (patch) | |
tree | f636724aecc907dd7b3bb8c60415956a0afb762e /unix | |
parent | ec306bb22e434cd0fe9c2e4b8d29fa1e23c8bee3 (diff) | |
parent | ce1701ea1fdb6a67150c53cc46d901c4bbba9530 (diff) | |
download | tcl-e6d3efd5e198449f5a21a738187602c82475c40b.zip tcl-e6d3efd5e198449f5a21a738187602c82475c40b.tar.gz tcl-e6d3efd5e198449f5a21a738187602c82475c40b.tar.bz2 |
Merge core-8-6-branch.
Do gcc-compiles with the option -Wwrite-strings, so we can detect mis-usage of "const".
Make Tcl_AddErrorInfo() and Tcl_AddObjErrorInfo() a macro.
Diffstat (limited to 'unix')
-rwxr-xr-x | unix/configure | 2 | ||||
-rw-r--r-- | unix/tcl.m4 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/unix/configure b/unix/configure index baea1f1..741ae47 100755 --- a/unix/configure +++ b/unix/configure @@ -4985,7 +4985,7 @@ fi if test "$GCC" = yes; then : CFLAGS_OPTIMIZE=-O2 - CFLAGS_WARNING="-Wall -Wsign-compare -Wdeclaration-after-statement" + CFLAGS_WARNING="-Wall -Wwrite-strings -Wsign-compare -Wdeclaration-after-statement" else diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 3189960..c1d7a7d 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -1096,7 +1096,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ CFLAGS_DEBUG=-g AS_IF([test "$GCC" = yes], [ CFLAGS_OPTIMIZE=-O2 - CFLAGS_WARNING="-Wall -Wsign-compare -Wdeclaration-after-statement" + CFLAGS_WARNING="-Wall -Wwrite-strings -Wsign-compare -Wdeclaration-after-statement" ], [ CFLAGS_OPTIMIZE=-O CFLAGS_WARNING="" |