* win32_threads.c [CPPCHECK] (GC_get_next_stack): Set thread a non-null
value (near current_min assignment) even if GC_win32_dll_threads (to
avoid cppcheck complain that if(thread!=0) is always false (thus
UNPROTECT_THREAD(thread) is never reached) if GC_DISCOVER_TASK_THREADS.
plast_stack_min = (ptr_t * /* no volatile */)
&dll_thread_table[i].last_stack_min;
current_min = s;
+# if defined(CPPCHECK)
+ /* To avoid a warning that thread is always null. */
+ thread = (GC_thread)&dll_thread_table[i];
+# endif
}
}
} else {