Skip to content

Commit

Permalink
Fix 'arg parameter might be clobbered by setjmp' compiler warning
Browse files Browse the repository at this point in the history
* mach_dep.c (GC_with_callee_saves_pushed): Make "arg" parameter
volatile (to prevent it from potential clobbering).
  • Loading branch information
ivmai committed Jul 1, 2016
1 parent ef1cdf2 commit 8ffc3db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mach_dep.c
Expand Up @@ -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;
Expand Down

0 comments on commit 8ffc3db

Please sign in to comment.