make: require return value of HashIter_Next to be used

This would have prevented an endless loop in
purge_relative_cached_realpaths.
This commit is contained in:
rillig 2024-06-01 10:10:50 +00:00
parent cdbdfe2384
commit 241c9849b3
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: hash.h,v 1.49 2024/05/31 05:50:11 rillig Exp $ */ /* $NetBSD: hash.h,v 1.50 2024/06/01 10:10:50 rillig Exp $ */
/* /*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California. * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@ -140,7 +140,7 @@ void HashTable_Set(HashTable *, const char *, void *);
void HashTable_DeleteEntry(HashTable *, HashEntry *); void HashTable_DeleteEntry(HashTable *, HashEntry *);
void HashTable_DebugStats(HashTable *, const char *); void HashTable_DebugStats(HashTable *, const char *);
bool HashIter_Next(HashIter *); bool HashIter_Next(HashIter *) MAKE_ATTR_USE;
MAKE_INLINE void MAKE_INLINE void
HashSet_Init(HashSet *set) HashSet_Init(HashSet *set)