From a7186777de9ac6f4970f167204aa966752cee0db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Mon, 6 Nov 2023 04:55:36 +0100 Subject: threads: unbreak mpv on builds without asserts Also remove duplicated macro. Fixes: #12818 #12820 --- osdep/threads-posix.h | 1 + 1 file changed, 1 insertion(+) (limited to 'osdep/threads-posix.h') diff --git a/osdep/threads-posix.h b/osdep/threads-posix.h index 02388a5acf..ea1d86fdb5 100644 --- a/osdep/threads-posix.h +++ b/osdep/threads-posix.h @@ -122,6 +122,7 @@ static inline int mp_mutex_init_type_internal(mp_mutex *mutex, enum mp_mutex_typ pthread_mutexattr_settype(&attr, mutex_type); ret = pthread_mutex_init(mutex, &attr); pthread_mutexattr_destroy(&attr); + assert(!ret); return ret; } -- cgit v1.2.3