GNU bug report logs - #70474
Possible bug with `atomic-box-swap!` on OSX/M3 (?!?!)

Previous Next

Package: guile;

Reported by: Tony Garnock-Jones <tonyg <at> leastfixedpoint.com>

Date: Fri, 19 Apr 2024 12:11:04 UTC

Severity: normal

Full log


Message #14 received at 70474 <at> debbugs.gnu.org (full text, mbox):

From: Tony Garnock-Jones <tonyg <at> leastfixedpoint.com>
To: 70474 <at> debbugs.gnu.org
Subject: [PATCH 1/2] Including the cast makes Apple clang 15.0.0 happy;
 without it, clang is sad
Date: Fri, 19 Apr 2024 22:46:48 +0200
I'm not sure why, exactly, but I needed this to get builds to work on 
OSX Sonoma at all.

---
 libguile/scmsigs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libguile/scmsigs.c b/libguile/scmsigs.c
index 7fd3fd8f1..be96dbd5c 100644
--- a/libguile/scmsigs.c
+++ b/libguile/scmsigs.c
@@ -302,7 +302,7 @@ scm_i_signals_post_fork ()
     }
  #if SCM_USE_PTHREAD_THREADS
-  once = SCM_I_PTHREAD_ONCE_INIT;
+  once = (scm_i_pthread_once_t) SCM_I_PTHREAD_ONCE_INIT;
 #endif
   if (active)
     scm_i_ensure_signal_delivery_thread ();
-- 
2.44.0





This bug report was last modified 1 year and 57 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.