]> granicus.if.org Git - gc/commitdiff
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>
Fri, 7 Apr 2017 15:40:58 +0000 (18:40 +0300)
* os_dep.c [REDIRECT_MALLOC] (GC_in_save_callers): Add missing type
(GC_bool) of the declared variable.

os_dep.c

index 79cd8eae59cff87b5b398ae6ce830f151b15e286..1d7e61a0cd62a45f4928825e6ac755b48140228f 100644 (file)
--- a/os_dep.c
+++ b/os_dep.c
@@ -4541,10 +4541,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])