diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2011-03-28 07:54:04 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2011-03-28 07:54:04 (GMT) |
| commit | 7d3bab0e496313d5c7f1d036fe791a9612d77a8d (patch) | |
| tree | 6a4aa20b3835d4c09d4bc9f1ec45edea8a7706c2 | |
| parent | 04b2977e1da893ce4a7370789ec7eb47e7afcc4a (diff) | |
| download | tcl-7d3bab0e496313d5c7f1d036fe791a9612d77a8d.zip tcl-7d3bab0e496313d5c7f1d036fe791a9612d77a8d.tar.gz tcl-7d3bab0e496313d5c7f1d036fe791a9612d77a8d.tar.bz2 | |
gcc warning: unused variable "key"
| -rw-r--r-- | generic/tclHash.c | 3 |
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); |
