From f0989db7f1571bd96a13cfefeec71297633d05c1 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 23 Nov 2018 21:36:20 +0300 Subject: [PATCH] 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(). --- tests/test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test.c b/tests/test.c index 3d70d3d1..fdfce804 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; -- 2.50.1