Skip to content

Commit 7d549c0

Browse files
committed
fixup! mingw: uglify pthread_mutex_init definition to shut up warning
1 parent 186a915 commit 7d549c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compat/nedmalloc/malloc.c.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1804,9 +1804,10 @@ struct win32_mlock_t
18041804
volatile long threadid;
18051805
};
18061806

1807+
static inline int return_0(int i) { return 0; }
18071808
#define MLOCK_T struct win32_mlock_t
18081809
#define CURRENT_THREAD win32_getcurrentthreadid()
1809-
#define INITIAL_LOCK(sl) (memset(sl, 0, sizeof(MLOCK_T)), 0)
1810+
#define INITIAL_LOCK(sl) (memset(sl, 0, sizeof(MLOCK_T)), return_0(0))
18101811
#define ACQUIRE_LOCK(sl) win32_acquire_lock(sl)
18111812
#define RELEASE_LOCK(sl) win32_release_lock(sl)
18121813
#define TRY_LOCK(sl) win32_try_lock(sl)

0 commit comments

Comments
 (0)