~ chicken-core (chicken-5) 0f13860630dfbc2e347b6e0329a0c40a893f2038
commit 0f13860630dfbc2e347b6e0329a0c40a893f2038 Author: Peter Bex <peter@more-magic.net> AuthorDate: Sun Mar 12 20:57:45 2017 +0100 Commit: Evan Hanson <evhan@foldling.org> CommitDate: Fri Mar 17 12:03:30 2017 +1300 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. Signed-off-by: Evan Hanson <evhan@foldling.org> diff --git a/runtime.c b/runtime.c index ffeee772..d80301fe 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;Trap