diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2016-12-06 02:21:33 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-12-06 02:21:33 +0300 |
commit | ec5cb4383060213912a7f88ea4aa850faf3ffb68 (patch) | |
tree | 88f4a3c8152aae72f68c40fe56b5cd17c4665053 /mach_dep.c | |
parent | 876212a85fbfe1f88ea973ac9f87363bb878446a (diff) | |
download | bdwgc-ec5cb4383060213912a7f88ea4aa850faf3ffb68.tar.gz |
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).
Diffstat (limited to 'mach_dep.c')
-rw-r--r-- | mach_dep.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |