summaryrefslogtreecommitdiffstats
path: root/generic/tclHash.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-28 07:54:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-28 07:54:04 (GMT)
commit54e58f9d2df63783abd9492926ed2cd4e4c6393a (patch)
tree6a4aa20b3835d4c09d4bc9f1ec45edea8a7706c2 /generic/tclHash.c
parentf6e39f12097065e62da6885b91213f473f1ae69e (diff)
downloadtcl-54e58f9d2df63783abd9492926ed2cd4e4c6393a.zip
tcl-54e58f9d2df63783abd9492926ed2cd4e4c6393a.tar.gz
tcl-54e58f9d2df63783abd9492926ed2cd4e4c6393a.tar.bz2
gcc warning: unused variable "key"
Diffstat (limited to 'generic/tclHash.c')
-rw-r--r--generic/tclHash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tclHash.c b/generic/tclHash.c
index 53d9919..b5baf22 100644
--- a/generic/tclHash.c
+++ b/generic/tclHash.c
@@ -1191,8 +1191,6 @@ RebuildTable(tablePtr)
for (hPtr = *oldChainPtr; hPtr != NULL; hPtr = *oldChainPtr) {
*oldChainPtr = hPtr->nextPtr;
- key = (VOID *) Tcl_GetHashKey (tablePtr, hPtr);
-
#if TCL_HASH_KEY_STORE_HASH
if (typePtr->hashKeyProc == NULL
|| typePtr->flags & TCL_HASH_KEY_RANDOMIZE_HASH) {
@@ -1203,6 +1201,7 @@ RebuildTable(tablePtr)
hPtr->nextPtr = tablePtr->buckets[index];
tablePtr->buckets[index] = hPtr;
#else
+ key = (VOID *) Tcl_GetHashKey (tablePtr, hPtr);
if (typePtr->hashKeyProc) {
unsigned int hash;
hash = typePtr->hashKeyProc (tablePtr, (VOID *) key);