From: Thomas Linder Puls Date: Sun, 3 Jul 2016 22:09:18 +0000 (+0200) Subject: Missing volatile in declaration of GC_with_callee_saves_pushed X-Git-Tag: gc7_6_0~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65b50c089d3189ad3f085c9f5dda998277888117;p=gc Missing volatile in declaration of GC_with_callee_saves_pushed (fix for commit 8ffc3db) Otherwise MS VC reports a warning at level 4. * include/private/gc_priv.h (GC_with_callee_saves_pushed): Add volatile for arg (to match the function definition). --- diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index 03358436..3d68b54a 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -1641,7 +1641,7 @@ GC_EXTERN void (*GC_push_typed_structures)(void); /* the typed allocation support if unused. */ GC_INNER void GC_with_callee_saves_pushed(void (*fn)(ptr_t, void *), - ptr_t arg); + volatile ptr_t arg); #if defined(SPARC) || defined(IA64) /* Cause all stacked registers to be saved in memory. Return a */