From af0b169430c1980ce96f0e655eade2b1ec92b4c4 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sun, 12 Mar 2017 20:57:45 +0100 Subject: [PATCH 3/3] Remove inconsistent typecast to C_restart_trampoline The function argument "trampoline" is already of type void *, which is the type of C_restart_trampoline, to which we assign it. Casting to C_proc results in a compiler warning on Sun Studio. This was introduced in 67a3d9c4, when we got rid of C_HACKED_APPLY and the TRAMPOLINE typedef. --- runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime.c b/runtime.c index eb3b350..22dbeec 100644 --- a/runtime.c +++ b/runtime.c @@ -3319,7 +3319,7 @@ C_regparm void C_fcall C_reclaim(void *trampoline, C_word c) if(C_pre_gc_hook != NULL) C_pre_gc_hook(GC_MINOR); finalizers_checked = 0; - C_restart_trampoline = (C_proc)trampoline; + C_restart_trampoline = trampoline; C_restart_c = c; heap_scan_top = (C_byte *)C_align((C_uword)C_fromspace_top); gc_mode = GC_MINOR; -- 2.1.4