From ec5cb4383060213912a7f88ea4aa850faf3ffb68 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 6 Dec 2016 02:21:33 +0300 Subject: [PATCH] Fix 'context local variable might be clobbered by setjmp' compiler warning * mach_dep.c (GC_with_callee_saves_pushed): Mark "context" local variable as volatile (to prevent it from potential clobbering). --- mach_dep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mach_dep.c b/mach_dep.c index 850a990..62b7a37 100644 --- a/mach_dep.c +++ b/mach_dep.c @@ -226,7 +226,7 @@ GC_INNER void GC_with_callee_saves_pushed(void (*fn)(ptr_t, void *), GC_ATTR_NO_SANITIZE_ADDR { volatile int dummy; - void * context = 0; + void * volatile context = 0; # if defined(HAVE_PUSH_REGS) GC_push_regs(); -- 2.7.4