X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=vector%2FHashVector.c;h=19269c1a0eaec61137ee12565bcf92905ee83154;hb=d6f70b77023f9682bf2c65428068a6897dd16ce3;hp=a07a9169b2c1167cff10c9ba8c37430f6b15898b;hpb=1d530c65782b499bb75afff76f1214edfe30ec21;p=rrq%2Frrqmisc.git diff --git a/vector/HashVector.c b/vector/HashVector.c index a07a916..19269c1 100644 --- a/vector/HashVector.c +++ b/vector/HashVector.c @@ -57,7 +57,7 @@ static void **HashVector_find_slot( // Find the keyed item void *HashVector_find(HashVector *hv,void *key) { VectorIndex index = 0; - void **slot = HashVector_find_slot( hv, &index, key, 0 ); + void **slot = HashVector_find_slot( hv, key, &index, 0 ); return ( slot && *slot && *slot != HV_HOLE )? *slot : 0; } @@ -78,6 +78,7 @@ void *HashVector_next(HashVector *hv,VectorIndex *index) { } static int capture_item(Vector *pv,unsigned long ix,void *item,void *data) { + (void)pv; (void)ix; if ( item && item != HV_HOLE ) { HashVector_add( (HashVector *) data, item ); } @@ -85,6 +86,7 @@ static int capture_item(Vector *pv,unsigned long ix,void *item,void *data) { } static int iter_item(unsigned long ix,void *item,void *data) { + (void)ix; if ( item && item != HV_HOLE ) { HashVector_add( (HashVector *) data, item ); }