From 7e1c24c624fa7a01be01b2d86e384474f8ca4224 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sat, 22 Oct 2016 01:11:30 +0300 Subject: Eliminate 'value of GC_RETURN_ADDR_PARENT unknown' cppcheck info messages * dbg_mlc.c [GC_ADD_CALLER]: Replace defined(GC_RETURN_ADDR_PARENT) with defined(GC_HAVE_RETURN_ADDR_PARENT). * include/private/gc_priv.h (GC_DBG_EXTRAS): Likewise. * include/gc_config_macros.h [GC_RETURN_ADDR_PARENT] (GC_HAVE_RETURN_ADDR_PARENT): New macro. --- dbg_mlc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dbg_mlc.c') diff --git a/dbg_mlc.c b/dbg_mlc.c index 5d053d4f..fbfa6bc4 100644 --- a/dbg_mlc.c +++ b/dbg_mlc.c @@ -486,7 +486,7 @@ GC_API void GC_CALL GC_debug_register_displacement(size_t offset) } #ifdef GC_ADD_CALLER -# if defined(HAVE_DLADDR) && defined(GC_RETURN_ADDR_PARENT) +# if defined(HAVE_DLADDR) && defined(GC_HAVE_RETURN_ADDR_PARENT) # include STATIC void GC_caller_func_offset(word ad, const char **symp, int *offp) -- cgit v1.2.1