diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2016-07-01 10:41:16 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-07-01 10:41:16 +0300 |
commit | 8ffc3db1c56c4ef327538fe8a667a2abebbce773 (patch) | |
tree | 818bbd2e3d1f9ccfb7dea42833c01ef1e721cef3 /mach_dep.c | |
parent | ef1cdf2a962956c4693ca818c68c4c30f80f1cf9 (diff) | |
download | bdwgc-8ffc3db1c56c4ef327538fe8a667a2abebbce773.tar.gz |
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).
Diffstat (limited to 'mach_dep.c')
-rw-r--r-- | mach_dep.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |