summaryrefslogtreecommitdiff
path: root/win32_threads.c
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 /win32_threads.c
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 'win32_threads.c')
-rw-r--r--win32_threads.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win32_threads.c b/win32_threads.c
index 9ff9dfdb..7081055c 100644
--- a/win32_threads.c
+++ b/win32_threads.c
@@ -1366,7 +1366,7 @@ STATIC void *GC_CALLBACK GC_win32_start_inner(struct GC_stack_base *sb,
__finally
# endif
{
- GC_unregister_my_thread();
+ (void)GC_unregister_my_thread();
}
# ifdef DEBUG_THREADS
@@ -1433,7 +1433,7 @@ GC_API HANDLE WINAPI GC_CreateThread(
GC_API DECLSPEC_NORETURN void WINAPI GC_ExitThread(DWORD dwExitCode)
{
- GC_unregister_my_thread();
+ (void)GC_unregister_my_thread();
ExitThread(dwExitCode);
}
@@ -1492,7 +1492,7 @@ GC_API DECLSPEC_NORETURN void WINAPI GC_ExitThread(DWORD dwExitCode)
GC_API void GC_CALL GC_endthreadex(unsigned retval)
{
- GC_unregister_my_thread();
+ (void)GC_unregister_my_thread();
_endthreadex(retval);
}
#endif /* !CYGWIN32 && !MSWINCE && !MSWIN_XBOX1 && !NO_CRT */