From 01ca4161c9fd079f4a6a23d6562ea6e26798cfee 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 9edf333c..c6ffa74e 100644 --- a/mach_dep.c +++ b/mach_dep.c @@ -214,7 +214,7 @@ GC_INNER void GC_with_callee_saves_pushed(void (*fn)(ptr_t, void *), volatile ptr_t arg) { volatile int dummy; - void * context = 0; + void * volatile context = 0; # if defined(HAVE_PUSH_REGS) GC_push_regs(); -- 2.40.0