diff options
author | dgp <dgp@users.sourceforge.net> | 2020-03-06 21:33:24 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2020-03-06 21:33:24 (GMT) |
commit | c4a1ea568ee92b0d890bb012f44b345c80f25fa8 (patch) | |
tree | 5c9b8cae89263c6d99738a15d02d2113274f66e4 /generic/tclHash.c | |
parent | 1e155ca6690f927989e3afaa7559109019361d0d (diff) | |
parent | 81e31a16d82ff906b74f9b726637a3f146b77a4d (diff) | |
download | tcl-c4a1ea568ee92b0d890bb012f44b345c80f25fa8.zip tcl-c4a1ea568ee92b0d890bb012f44b345c80f25fa8.tar.gz tcl-c4a1ea568ee92b0d890bb012f44b345c80f25fa8.tar.bz2 |
merge 8.7
Diffstat (limited to 'generic/tclHash.c')
-rw-r--r-- | generic/tclHash.c | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/generic/tclHash.c b/generic/tclHash.c index 5a90dda..12a452d 100644 --- a/generic/tclHash.c +++ b/generic/tclHash.c @@ -771,13 +771,12 @@ HashArrayKey( static Tcl_HashEntry * AllocStringEntry( - Tcl_HashTable *tablePtr, /* Hash table. */ + TCL_UNUSED(Tcl_HashTable *), void *keyPtr) /* Key to store in the hash table entry. */ { const char *string = (const char *) keyPtr; Tcl_HashEntry *hPtr; size_t size, allocsize; - (void)tablePtr; allocsize = size = strlen(string) + 1; if (size < sizeof(hPtr->key)) { @@ -834,13 +833,12 @@ CompareStringKeys( static TCL_HASH_TYPE HashStringKey( - Tcl_HashTable *tablePtr, /* Hash table. */ + TCL_UNUSED(Tcl_HashTable *), void *keyPtr) /* Key from which to compute hash value. */ { const char *string = (const char *)keyPtr; TCL_HASH_TYPE result; char c; - (void)tablePtr; /* * I tried a zillion different hash functions and asked many other people @@ -902,11 +900,9 @@ HashStringKey( /* ARGSUSED */ static Tcl_HashEntry * BogusFind( - Tcl_HashTable *tablePtr, /* Table in which to lookup entry. */ - const char *key) /* Key to use to find matching entry. */ + TCL_UNUSED(Tcl_HashTable *), + TCL_UNUSED(const char *)) { - (void)tablePtr; - (void)key; Tcl_Panic("called %s on deleted table", "Tcl_FindHashEntry"); return NULL; } @@ -931,15 +927,10 @@ BogusFind( /* ARGSUSED */ static Tcl_HashEntry * BogusCreate( - Tcl_HashTable *tablePtr, /* Table in which to lookup entry. */ - const char *key, /* Key to use to find or create matching - * entry. */ - int *newPtr) /* Store info here telling whether a new entry - * was created. */ + TCL_UNUSED(Tcl_HashTable *), + TCL_UNUSED(const char *), + TCL_UNUSED(int *)) { - (void)tablePtr; - (void)key; - (void)newPtr; Tcl_Panic("called %s on deleted table", "Tcl_CreateHashEntry"); return NULL; } |