From 5871f287efc913063e9c42aef5962bebdc3f4692 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 16 Mar 2023 09:41:11 +0300 Subject: Define GC_print_stats as GC_INNER (refactoring) * extra/MacOS.c [USE_TEMPORARY_MEMORY && !SHARED_LIBRARY_BUILD] (GC_MacFreeTemporaryMemory): Do not use GC_print_stats (assume it is always zero). * include/private/gc_priv.h [!NO_CLOCK || !SMALL_CONFIG] (GC_print_stats): Declared as GC_EXTERN; refine comment. * misc.c [!NO_CLOCK || !SMALL_CONFIG] (GC_print_stats): Define as GC_INNER. * tests/gctest.c [!GC_PRINT_VERBOSE_STATS && !GCTEST_PRINT_VERBOSE] (GC_print_stats): Update comment. --- misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc.c') diff --git a/misc.c b/misc.c index 134fee1b..77ce78c3 100644 --- a/misc.c +++ b/misc.c @@ -94,7 +94,7 @@ int GC_dont_precollect = FALSE; GC_bool GC_quiet = 0; /* used also in pcr_interface.c */ #if !defined(NO_CLOCK) || !defined(SMALL_CONFIG) - int GC_print_stats = 0; + GC_INNER int GC_print_stats = 0; #endif #ifdef GC_PRINT_BACK_HEIGHT -- cgit v1.2.1