summaryrefslogtreecommitdiff
path: root/mach_dep.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2016-07-01 10:41:16 +0300
committerIvan Maidanski <ivmai@mail.ru>2016-07-01 10:41:16 +0300
commit8ffc3db1c56c4ef327538fe8a667a2abebbce773 (patch)
tree818bbd2e3d1f9ccfb7dea42833c01ef1e721cef3 /mach_dep.c
parentef1cdf2a962956c4693ca818c68c4c30f80f1cf9 (diff)
downloadbdwgc-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.c2
1 files changed, 1 insertions, 1 deletions
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;