]> granicus.if.org Git - gc/commitdiff
Missing volatile in declaration of GC_with_callee_saves_pushed
authorThomas Linder Puls <thomas_linder_puls@hotmail.com>
Sun, 3 Jul 2016 22:09:18 +0000 (00:09 +0200)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 5 Jul 2016 11:27:55 +0000 (14:27 +0300)
(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

index 03358436ba449d1d74bad28f254ae5e701538380..3d68b54a916607ca78ddb038ce674d3d9c9dda0c 100644 (file)
@@ -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       */