summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-12-19 07:41:39 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-12-19 07:41:39 +0300
commita9c05c0311b76b9766dc46caa9e8036f5085b129 (patch)
tree506780a4c0bc97c7f8181b4a665868dfeba66a42 /tests
parente45120d08bd1b4dcc2184024e76b40ddfafc69ca (diff)
downloadbdwgc-a9c05c0311b76b9766dc46caa9e8036f5085b129.tar.gz
Document that GC_unregister_my_thread result value is dummy
* include/gc/gc.h [GC_THREADS] (GC_unregister_my_thread): Refine comment (mention that GC_SUCCESS is always returned). * tests/gctest.c [THREADS] (check_heap_stats): Cast call of GC_unregister_my_thread() to void. * win32_threads.c (GC_win32_start_inner, GC_ExitThread): Likewise. * win32_threads.c [!CYGWIN32 && !MSWINCE && !MSWIN_XBOX1 && !NO_CRT] (GC_endthreadex): Likewise.
Diffstat (limited to 'tests')
-rw-r--r--tests/gctest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gctest.c b/tests/gctest.c
index 86b448fe..358fbc7e 100644
--- a/tests/gctest.c
+++ b/tests/gctest.c
@@ -1961,7 +1961,7 @@ void check_heap_stats(void)
# endif
# ifdef THREADS
- GC_unregister_my_thread(); /* just to check it works (for main) */
+ (void)GC_unregister_my_thread(); /* just to check it works (for main) */
# endif
# ifdef NO_CLOCK
GC_printf("Completed %u collections\n", (unsigned)GC_get_gc_no());