summaryrefslogtreecommitdiff
path: root/win32_threads.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2017-01-18 11:58:42 +0300
committerIvan Maidanski <ivmai@mail.ru>2017-01-18 11:58:42 +0300
commit20a581dfd50a4de4b4d1935893aa41e5ea64d32f (patch)
tree0ca952e0f56ed844fc7fbeca03a4fb82e4a683bf /win32_threads.c
parenta6d71b1ad8a649561e67c8cf8ea345b7e03b9f64 (diff)
downloadbdwgc-20a581dfd50a4de4b4d1935893aa41e5ea64d32f.tar.gz
Eliminate 'GC_collecting is set but never used' code defect (Win32)
* include/private/gc_locks.h [USE_PTHREAD_LOCKS && GC_PTHREADS] (GC_collecting): Do not declare if GC_WIN32_THREADS. * include/private/gc_locks.h [USE_PTHREAD_LOCKS && GC_PTHREADS] (ENTER_GC, EXIT_GC): Do not define if GC_WIN32_THREADS; remove trailing ';', add cast to void. * win32_threads.c [USE_PTHREAD_LOCKS] (GC_collecting): Remove definition.
Diffstat (limited to 'win32_threads.c')
-rw-r--r--win32_threads.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/win32_threads.c b/win32_threads.c
index 1527ba3c..263ba588 100644
--- a/win32_threads.c
+++ b/win32_threads.c
@@ -2838,11 +2838,6 @@ GC_INNER void GC_init_parallel(void)
/* pthread_mutex_trylock may not win here, */
/* due to builtin support for spinning first? */
- GC_INNER volatile GC_bool GC_collecting = 0;
- /* A hint that we're in the collector and */
- /* holding the allocation lock for an */
- /* extended period. */
-
GC_INNER void GC_lock(void)
{
pthread_mutex_lock(&GC_allocate_ml);