summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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=