From 01c4f82e077b93cb2318830c56070c0ec15a20e6 Mon Sep 17 00:00:00 2001 From: Inari Listenmaa Date: Sat, 2 Aug 2025 16:42:54 +0200 Subject: misc small fixes: - update actions/cache to v4 - update haskell/actions/setup to haskell-actions/setup - stack doesn't support ghc < 8.4, remove from CI - don't fail immediately - add -fpermissive flag to gcc - only build 9.6.6 with macos and windows latest - bump base upper bound --- src/runtime/c/configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'src/runtime/c') diff --git a/src/runtime/c/configure.ac b/src/runtime/c/configure.ac index 2af669fe2..4e86e5251 100644 --- a/src/runtime/c/configure.ac +++ b/src/runtime/c/configure.ac @@ -30,6 +30,7 @@ AM_PROG_CC_C_O -Wall\ -Wextra\ -Wno-missing-field-initializers\ + -fpermissive\ -Wno-unused-parameter\ -Wno-unused-value" fi] -- cgit v1.2.3 From 288984d243452ea796faabf4ee53f12ea86eda46 Mon Sep 17 00:00:00 2001 From: Arianna Masciolini Date: Sat, 2 Aug 2025 23:01:20 +0200 Subject: fix compatibility with newer gcc versions --- src/runtime/c/gu/fun.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/runtime/c') diff --git a/src/runtime/c/gu/fun.h b/src/runtime/c/gu/fun.h index f4c1a5a38..5c14de6e9 100644 --- a/src/runtime/c/gu/fun.h +++ b/src/runtime/c/gu/fun.h @@ -12,17 +12,17 @@ typedef void (*GuFn2)(GuFn* clo, void* arg1, void* arg2); static inline void gu_apply0(GuFn* fn) { - (*fn)(fn); + ((GuFn0)(*fn))(fn); } static inline void gu_apply1(GuFn* fn, void* arg1) { - (*fn)(fn, arg1); + ((GuFn1)(*fn))(fn, arg1); } static inline void gu_apply2(GuFn* fn, void* arg1, void* arg2) { - (*fn)(fn, arg1, arg2); + ((GuFn2)(*fn))(fn, arg1, arg2); } #define gu_apply(fn_, ...) \ -- cgit v1.2.3