From: Ivan Maidanski Date: Fri, 1 Jul 2016 07:41:16 +0000 (+0300) Subject: Fix 'arg parameter might be clobbered by setjmp' compiler warning X-Git-Tag: gc7_6_0~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ffc3db1c56c4ef327538fe8a667a2abebbce773;p=gc 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). --- 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;