win32: pthread_cond_init should return a value

This value is not checked, but it must return to match POSIX Signed-off-by: Greg Funni <gfunni234@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Greg Funni committed Nov 20, 2025 at 21:43 UTC 42aa7603aa752850c8ad89cca61e280dab520faf
1 file changed +1 -1
compat/win32/pthread.h
+1 -1
@@ -34,7 +34,7 @@ typedef int pthread_mutexattr_t;
34
35 #define pthread_cond_t CONDITION_VARIABLE
36
37 -#define pthread_cond_init(a,b) InitializeConditionVariable((a))
37 +#define pthread_cond_init(a,b) return_0((InitializeConditionVariable((a)), 0))
38 #define pthread_cond_destroy(a) do {} while (0)
39 #define pthread_cond_wait(a,b) return_0(SleepConditionVariableCS((a), (b), INFINITE))
40 #define pthread_cond_signal WakeConditionVariable