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)
commit11331dcc6389af44efbfc5fdef4fe63c31dcf2e4 (patch)
treefe52bceab00748de02c3ee7e643f88df9ae01b2c /generic/tclThreadAlloc.c
parent05862f95c1d88338f19201a9dddc6c676bb99830 (diff)
downloadtcl-11331dcc6389af44efbfc5fdef4fe63c31dcf2e4.zip
tcl-11331dcc6389af44efbfc5fdef4fe63c31dcf2e4.tar.gz
tcl-11331dcc6389af44efbfc5fdef4fe63c31dcf2e4.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) {