From 241c9849b3baa3437ed6f085f328d8065f871a56 Mon Sep 17 00:00:00 2001 From: rillig Date: Sat, 1 Jun 2024 10:10:50 +0000 Subject: [PATCH] make: require return value of HashIter_Next to be used This would have prevented an endless loop in purge_relative_cached_realpaths. --- usr.bin/make/hash.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/make/hash.h b/usr.bin/make/hash.h index 04290e3b6c06..9201c65025c7 100644 --- a/usr.bin/make/hash.h +++ b/usr.bin/make/hash.h @@ -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. @@ -140,7 +140,7 @@ void HashTable_Set(HashTable *, const char *, void *); void HashTable_DeleteEntry(HashTable *, HashEntry *); void HashTable_DebugStats(HashTable *, const char *); -bool HashIter_Next(HashIter *); +bool HashIter_Next(HashIter *) MAKE_ATTR_USE; MAKE_INLINE void HashSet_Init(HashSet *set)