We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20b2ca9 commit 9fb6af9Copy full SHA for 9fb6af9
1 file changed
Python/pystate.c
@@ -22,7 +22,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
22
#ifdef WITH_THREAD
23
#include "pythread.h"
24
static PyThread_type_lock head_mutex = NULL; /* Protects interp->tstate_head */
25
-#define HEAD_INIT() (head_mutex || (head_mutex = PyThread_allocate_lock()))
+#define HEAD_INIT() (void)(head_mutex || (head_mutex = PyThread_allocate_lock()))
26
#define HEAD_LOCK() PyThread_acquire_lock(head_mutex, WAIT_LOCK)
27
#define HEAD_UNLOCK() PyThread_release_lock(head_mutex)
28
#else
0 commit comments