Workaround 'GC_dump function is never used' cppcheck warning
authorIvan Maidanski <ivmai@mail.ru>
Fri, 23 Nov 2018 08:57:29 +0000 (11:57 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 23 Nov 2018 08:57:29 +0000 (11:57 +0300)
* tests/test.c [!PCR && !GC_WIN32_THREADS && !GC_PTHREADS && CPPCHECK
&& !NO_DEBUGGING] (main): Add UNTESTED(GC_dump).

tests/test.c

index bccc838..bc70399 100644 (file)
@@ -1989,6 +1989,7 @@ void GC_CALLBACK warn_proc(char *msg, GC_word p)
          UNTESTED(GC_gcj_malloc_ignore_off_page);
 #      endif
 #      ifndef NO_DEBUGGING
+         UNTESTED(GC_dump);
          UNTESTED(GC_dump_regions);
          UNTESTED(GC_is_tmp_root);
          UNTESTED(GC_print_free_list);