[Git][ghc/ghc][wip/ghc-9.8] rts: Make collectFreshWeakPtrs definition a prototype

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Tue Jul 11 12:41:35 UTC 2023



Ben Gamari pushed to branch wip/ghc-9.8 at Glasgow Haskell Compiler / GHC


Commits:
8aa9a7ad by Ben Gamari at 2023-07-11T08:30:11-04:00
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)

- - - - -


1 changed file:

- rts/sm/MarkWeak.c


Changes:

=====================================
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



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8aa9a7ad5f159f068c06a064328d03ab8e71916b

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8aa9a7ad5f159f068c06a064328d03ab8e71916b
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230711/175b5597/attachment-0001.html>


More information about the ghc-commits mailing list