From 661a6c57a5f6a82abc87131f0b96b52cf3aab618 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 16 Mar 2017 01:02:12 +0300 Subject: [PATCH] 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. --- os_dep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os_dep.c b/os_dep.c index 0ff5c9d..fcafde6 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]) -- 2.7.4