[Git][ghc/ghc][master] rts: Work around missing prototypes errors

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Fri Jun 23 07:57:05 UTC 2023



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
5b6612bc by Ben Gamari at 2023-06-23T03:56:49-04:00
rts: Work around missing prototypes errors

Darwin's toolchain inexpliciably claims that `write_barrier` and friends
have declarations without prototypes, despite the fact that (a) they are
definitions, and (b) the prototypes appear only a few lines above. Work
around this by making the definitions proper prototypes.

- - - - -


1 changed file:

- rts/include/stg/SMP.h


Changes:

=====================================
rts/include/stg/SMP.h
=====================================
@@ -589,9 +589,9 @@ load_load_barrier(void) {
 EXTERN_INLINE void write_barrier(void);
 EXTERN_INLINE void store_load_barrier(void);
 EXTERN_INLINE void load_load_barrier(void);
-EXTERN_INLINE void write_barrier     () {} /* nothing */
-EXTERN_INLINE void store_load_barrier() {} /* nothing */
-EXTERN_INLINE void load_load_barrier () {} /* nothing */
+EXTERN_INLINE void write_barrier     (void) {} /* nothing */
+EXTERN_INLINE void store_load_barrier(void) {} /* nothing */
+EXTERN_INLINE void load_load_barrier (void) {} /* nothing */
 
 // Relaxed atomic operations
 #define RELAXED_LOAD(ptr) *ptr



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/5b6612bc4f6b0a7ecc9868750bee1c359ffca871

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/5b6612bc4f6b0a7ecc9868750bee1c359ffca871
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/20230623/6b677ee3/attachment.html>


More information about the ghc-commits mailing list