From 8ffc3db1c56c4ef327538fe8a667a2abebbce773 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 1 Jul 2016 10:41:16 +0300 Subject: Fix 'arg parameter might be clobbered by setjmp' compiler warning * mach_dep.c (GC_with_callee_saves_pushed): Make "arg" parameter volatile (to prevent it from potential clobbering). --- mach_dep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mach_dep.c') diff --git a/mach_dep.c b/mach_dep.c index 29e0b8a7..0515a531 100644 --- a/mach_dep.c +++ b/mach_dep.c @@ -218,7 +218,7 @@ /* are somewhere on the stack, and then call fn(arg, ctxt). */ /* ctxt is either a pointer to a ucontext_t we generated, or NULL. */ GC_INNER void GC_with_callee_saves_pushed(void (*fn)(ptr_t, void *), - ptr_t arg) + volatile ptr_t arg) { volatile int dummy; void * context = 0; -- cgit v1.2.1