From 65b50c089d3189ad3f085c9f5dda998277888117 Mon Sep 17 00:00:00 2001 From: Thomas Linder Puls Date: Mon, 4 Jul 2016 00:09:18 +0200 Subject: [PATCH] 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). --- include/private/gc_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.40.0