From: Ivan Maidanski Date: Fri, 23 Nov 2018 18:36:20 +0000 (+0300) Subject: Eliminate 'function is never used' cppcheck warning for calloc/realloc X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63b237ea5ff0a2f02376d1cab952c985259ce5da;p=gc Eliminate 'function is never used' cppcheck warning for calloc/realloc * tests/test.c [TEST_WITH_SYSTEM_MALLOC] (run_one_test): Call calloc(), realloc() and free(). --- diff --git a/tests/test.c b/tests/test.c index 17ba8a82..e947ddab 100644 --- a/tests/test.c +++ b/tests/test.c @@ -1557,6 +1557,10 @@ void run_one_test(void) # endif # endif /* DBG_HDRS_ALL */ tree_test(); +# ifdef TEST_WITH_SYSTEM_MALLOC + free(calloc(1,1)); + free(realloc(NULL, 64)); +# endif # ifndef NO_CLOCK if (print_stats) { CLOCK_TYPE tree_time;