From 2b3da4c4c29321a97166540b84d790c80c5fb228 Mon Sep 17 00:00:00 2001
From: Ben Gamari <ben@smart-cactus.org>
Date: Tue, 27 Jun 2023 09:00:54 -0400
Subject: [PATCH] rts: Make collectFreshWeakPtrs definition a prototype

x86-64/Darwin's toolchain inexplicably warns that collectFreshWeakPtrs
needs to be a prototype.

(cherry picked from commit bb0ed354b9b05c0774c1e9379823bceb785987ce)
---
 rts/sm/MarkWeak.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rts/sm/MarkWeak.c b/rts/sm/MarkWeak.c
index b74ba366eea..8a1075a3851 100644
--- a/rts/sm/MarkWeak.c
+++ b/rts/sm/MarkWeak.c
@@ -457,7 +457,7 @@ static void checkWeakPtrSanity(StgWeak *hd, StgWeak *tl)
  * Traverse the capabilities' local new-weak-pointer lists at the beginning of
  * GC and move them to the nursery's weak_ptr_list.
  */
-void collectFreshWeakPtrs()
+void collectFreshWeakPtrs( void )
 {
     uint32_t i;
     // move recently allocated weak_ptr_list to the old list as well
-- 
GitLab