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)
commit77ae9912ce0a04e499e2ad85d212aaa2cc895b74 (patch)
tree6a4aa20b3835d4c09d4bc9f1ec45edea8a7706c2 /generic/tclHash.c
parent9fa20079a85f67f75d0984c4e9947ca9a8fca5fa (diff)
downloadtcl-77ae9912ce0a04e499e2ad85d212aaa2cc895b74.zip
tcl-77ae9912ce0a04e499e2ad85d212aaa2cc895b74.tar.gz
tcl-77ae9912ce0a04e499e2ad85d212aaa2cc895b74.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);