summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-04-20 12:54:34 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-04-20 12:54:34 (GMT)
commite3995f82768b5b9212f3a643a51e50fd3dcbef2b (patch)
tree37305091bf054f0f854304b0b95e69dc1a87d9fe
parentbe4982a04a7e508f516fc9e761a15472c6b3eb8d (diff)
downloadtcl-e3995f82768b5b9212f3a643a51e50fd3dcbef2b.zip
tcl-e3995f82768b5b9212f3a643a51e50fd3dcbef2b.tar.gz
tcl-e3995f82768b5b9212f3a643a51e50fd3dcbef2b.tar.bz2
Silence unused variable warning
-rw-r--r--generic/tclHash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tclHash.c b/generic/tclHash.c
index b5baf22..e7ee344 100644
--- a/generic/tclHash.c
+++ b/generic/tclHash.c
@@ -1147,7 +1147,6 @@ RebuildTable(tablePtr)
register Tcl_HashEntry **oldChainPtr, **newChainPtr;
register Tcl_HashEntry *hPtr;
Tcl_HashKeyType *typePtr;
- VOID *key;
oldSize = tablePtr->numBuckets;
oldBuckets = tablePtr->buckets;
@@ -1201,7 +1200,7 @@ RebuildTable(tablePtr)
hPtr->nextPtr = tablePtr->buckets[index];
tablePtr->buckets[index] = hPtr;
#else
- key = (VOID *) Tcl_GetHashKey (tablePtr, hPtr);
+ VOID *key = (VOID *) Tcl_GetHashKey (tablePtr, hPtr);
if (typePtr->hashKeyProc) {
unsigned int hash;
hash = typePtr->hashKeyProc (tablePtr, (VOID *) key);