diff options
author | dgp <dgp@users.sourceforge.net> | 2020-03-06 20:23:01 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2020-03-06 20:23:01 (GMT) |
commit | b88a8f3dd92fcd8d7af61da8e6f9b56964ae0c3d (patch) | |
tree | 83c760358b0e650e6b520e4f49dae40692024a4d /generic/tclHash.c | |
parent | 9bfe3724215a96c07d1f1067c75389798f54a8c5 (diff) | |
download | tcl-b88a8f3dd92fcd8d7af61da8e6f9b56964ae0c3d.zip tcl-b88a8f3dd92fcd8d7af61da8e6f9b56964ae0c3d.tar.gz tcl-b88a8f3dd92fcd8d7af61da8e6f9b56964ae0c3d.tar.bz2 |
more
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 10e3027..e48c816 100644 --- a/generic/tclHash.c +++ b/generic/tclHash.c @@ -798,13 +798,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)) { @@ -864,13 +863,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 @@ -932,11 +930,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; } @@ -961,15 +957,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; } |