summaryrefslogtreecommitdiffstats
path: root/generic
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)
commit1215eff55ae56543bc36a833446143f4e573651f (patch)
tree37305091bf054f0f854304b0b95e69dc1a87d9fe /generic
parentefbec2bcd5b1b7497b720d9e626737cdbc370548 (diff)
downloadtcl-1215eff55ae56543bc36a833446143f4e573651f.zip
tcl-1215eff55ae56543bc36a833446143f4e573651f.tar.gz
tcl-1215eff55ae56543bc36a833446143f4e573651f.tar.bz2
Silence unused variable warning
Diffstat (limited to 'generic')
-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);