summaryrefslogtreecommitdiffstats
path: root/generic/tclThreadAlloc.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-11-01 14:14:35 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-11-01 14:14:35 (GMT)
commitd70fdf0f646214181606e609768b1ee62ad1b5cc (patch)
treefe52bceab00748de02c3ee7e643f88df9ae01b2c /generic/tclThreadAlloc.c
parent6ea21f53d11dd8b83fa7f83e37f4b9609cd95198 (diff)
downloadtcl-d70fdf0f646214181606e609768b1ee62ad1b5cc.zip
tcl-d70fdf0f646214181606e609768b1ee62ad1b5cc.tar.gz
tcl-d70fdf0f646214181606e609768b1ee62ad1b5cc.tar.bz2
silence more warnings
Diffstat (limited to 'generic/tclThreadAlloc.c')
-rw-r--r--generic/tclThreadAlloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/tclThreadAlloc.c b/generic/tclThreadAlloc.c
index bea85bd..9008d52 100644
--- a/generic/tclThreadAlloc.c
+++ b/generic/tclThreadAlloc.c
@@ -291,6 +291,7 @@ TclpAlloc(
register int bucket;
size_t size;
+#ifndef __LP64__
if (sizeof(int) >= sizeof(size_t)) {
/* An unsigned int overflow can also be a size_t overflow */
const size_t zero = 0;
@@ -301,6 +302,7 @@ TclpAlloc(
return NULL;
}
}
+#endif
cachePtr = TclpGetAllocCache();
if (cachePtr == NULL) {
@@ -434,6 +436,7 @@ TclpRealloc(
return TclpAlloc(reqSize);
}
+#ifndef __LP64__
if (sizeof(int) >= sizeof(size_t)) {
/* An unsigned int overflow can also be a size_t overflow */
const size_t zero = 0;
@@ -444,6 +447,7 @@ TclpRealloc(
return NULL;
}
}
+#endif
cachePtr = TclpGetAllocCache();
if (cachePtr == NULL) {