Eliminate 'type defaults to int in declaration' warning (REDIRECT_MALLOC)
authorIvan Maidanski <ivmai@mail.ru>
Wed, 15 Mar 2017 22:02:12 +0000 (01:02 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 15 Mar 2017 22:02:57 +0000 (01:02 +0300)
* os_dep.c [REDIRECT_MALLOC] (GC_in_save_callers): Add missing type
(GC_bool) of the declared variable.

os_dep.c

index 0ff5c9d..fcafde6 100644 (file)
--- a/os_dep.c
+++ b/os_dep.c
@@ -4474,10 +4474,10 @@ GC_API int GC_CALL GC_get_pages_executable(void)
   /* Deal with possible malloc calls in backtrace by omitting   */
   /* the infinitely recursing backtrace.                        */
 # ifdef THREADS
-    __thread    /* If your compiler doesn't understand this */
+    __thread    /* If your compiler doesn't understand this             */
                 /* you could use something like pthread_getspecific.    */
 # endif
-  GC_in_save_callers = FALSE;
+    GC_bool GC_in_save_callers = FALSE;
 #endif
 
 GC_INNER void GC_save_callers(struct callinfo info[NFRAMES])