summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornijtmans <nijtmans>2008-11-06 21:47:36 (GMT)
committernijtmans <nijtmans>2008-11-06 21:47:36 (GMT)
commite2049a58b3ae85b4fdd0e585a75194984bbf6232 (patch)
treedd5eb1c1e95b7ae605ae2dd7c86214a6b966d2d3
parentdf2152c1d6f0dc3b0e0aa8de8c0e1cd2730ea6d5 (diff)
downloadtcl-e2049a58b3ae85b4fdd0e585a75194984bbf6232.zip
tcl-e2049a58b3ae85b4fdd0e585a75194984bbf6232.tar.gz
tcl-e2049a58b3ae85b4fdd0e585a75194984bbf6232.tar.bz2
add "-Wno-implicit-int" for gcc, as on UNIX
eliminate an 'array index out of bounds' warning on HP-UX'
-rw-r--r--ChangeLog9
-rw-r--r--generic/tclIO.c6
-rwxr-xr-xwin/configure2
-rw-r--r--win/tcl.m42
4 files changed, 13 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index a62cda2..1b40350 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-11-06 Jan Nijtmans <nijtmans@users.sf.net>
+
+ * win/tcl.m4: add "-Wno-implicit-int" flag for gcc, as on UNIX
+ * win/configure (regenerated)
+ * generic/tclIO.c eliminate an 'array index out of bounds'
+ warning on HP-UX
+
2008-11-04 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclPort.h: remove the ../win/ header dir as the build
@@ -30,7 +37,7 @@
* generic/tclCompile.h: CONSTify TclDTraceInfo
* generic/tclBasic.c
* generic/tclProc.c
- * generic/tclEnv.c: Eliminate some -Wstrings-write warnings
+ * generic/tclEnv.c: Eliminate some -Wwrite-strings warnings
* generic/tclLink.c
2008-10-27 Don Porter <dgp@users.sourceforge.net>
diff --git a/generic/tclIO.c b/generic/tclIO.c
index d7524fe..d2017e8 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIO.c,v 1.146 2008/10/26 18:34:04 dkf Exp $
+ * RCS: @(#) $Id: tclIO.c,v 1.147 2008/11/06 21:47:36 nijtmans Exp $
*/
#include "tclInt.h"
@@ -4730,7 +4730,7 @@ FilterInputBytes(
statePtr->inQueueTail = nextPtr;
}
extra = rawLen - gsPtr->rawRead;
- memcpy(nextPtr->buf + BUFFER_PADDING - extra,
+ memcpy(nextPtr->buf + (BUFFER_PADDING - extra),
raw + gsPtr->rawRead, (size_t) extra);
nextPtr->nextRemoved -= extra;
bufPtr->nextAdded -= extra;
@@ -4879,7 +4879,7 @@ CommonGetsCleanup(
extra = SpaceLeft(bufPtr);
if (extra > 0) {
memcpy(InsertPoint(bufPtr),
- nextPtr->buf + BUFFER_PADDING - extra,
+ nextPtr->buf + (BUFFER_PADDING - extra),
(size_t) extra);
bufPtr->nextAdded += extra;
nextPtr->nextRemoved = BUFFER_PADDING;
diff --git a/win/configure b/win/configure
index 54c8274..d627b5e 100755
--- a/win/configure
+++ b/win/configure
@@ -3886,7 +3886,7 @@ echo "$as_me: error: ${CC} does not support the -shared option.
CFLAGS_DEBUG=-g
CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
- CFLAGS_WARNING="-Wall"
+ CFLAGS_WARNING="-Wall -Wno-implicit-int"
LDFLAGS_DEBUG=
LDFLAGS_OPTIMIZE=
diff --git a/win/tcl.m4 b/win/tcl.m4
index 1a46527..f76fbf8 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -529,7 +529,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
CFLAGS_DEBUG=-g
CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
- CFLAGS_WARNING="-Wall"
+ CFLAGS_WARNING="-Wall -Wno-implicit-int"
LDFLAGS_DEBUG=
LDFLAGS_OPTIMIZE=