From: Ivan Maidanski Date: Wed, 15 Mar 2017 22:02:12 +0000 (+0300) Subject: Eliminate 'type defaults to int in declaration' warning (REDIRECT_MALLOC) X-Git-Tag: v8.0.0~856 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=661a6c57a5f6a82abc87131f0b96b52cf3aab618;p=gc Eliminate 'type defaults to int in declaration' warning (REDIRECT_MALLOC) * os_dep.c [REDIRECT_MALLOC] (GC_in_save_callers): Add missing type (GC_bool) of the declared variable. --- diff --git a/os_dep.c b/os_dep.c index 0ff5c9d7..fcafde6a 100644 --- 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])