diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-03-22 09:05:10 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-03-22 09:05:10 (GMT) |
| commit | 740454d17abd5e8a134601126ac05d0988dbc13f (patch) | |
| tree | 097c4f17dd9552e1885621bf55d74a3f61a8ace8 /unix | |
| parent | a2827884a964758c13230c45ba18fa131cabbb8d (diff) | |
| download | tcl-740454d17abd5e8a134601126ac05d0988dbc13f.zip tcl-740454d17abd5e8a134601126ac05d0988dbc13f.tar.gz tcl-740454d17abd5e8a134601126ac05d0988dbc13f.tar.bz2 | |
Fix signed-unsigned-compare warning (reported by François Vogel on Windows, but gcc can trigger it as well)
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 3f9aa13..e999455 100755 --- a/unix/configure +++ b/unix/configure @@ -4985,7 +4985,7 @@ fi if test "$GCC" = yes; then : CFLAGS_OPTIMIZE=-O2 - CFLAGS_WARNING="-Wall" + CFLAGS_WARNING="-Wall -Wsign-compare -Wdeclaration-after-statement" else diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 57d8ff0..f5aa84e 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" + CFLAGS_WARNING="-Wall -Wsign-compare -Wdeclaration-after-statement" ], [ CFLAGS_OPTIMIZE=-O CFLAGS_WARNING="" |
