]> granicus.if.org Git - python/commitdiff
Removing warnings by gcc -Wall -- cast ugly || to void.
authorMoshe Zadka <moshez@math.huji.ac.il>
Fri, 4 Aug 2000 21:27:47 +0000 (21:27 +0000)
committerMoshe Zadka <moshez@math.huji.ac.il>
Fri, 4 Aug 2000 21:27:47 +0000 (21:27 +0000)
Python/pystate.c

index b9dee6e763a99ed868fbd9a9e028b8b5ccc5c979..1cd9cca8feafa5c1cc22cfe04dee247e67de1ed8 100644 (file)
@@ -22,7 +22,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 #ifdef WITH_THREAD
 #include "pythread.h"
 static PyThread_type_lock head_mutex = NULL; /* Protects interp->tstate_head */
-#define HEAD_INIT() (head_mutex || (head_mutex = PyThread_allocate_lock()))
+#define HEAD_INIT() (void)(head_mutex || (head_mutex = PyThread_allocate_lock()))
 #define HEAD_LOCK() PyThread_acquire_lock(head_mutex, WAIT_LOCK)
 #define HEAD_UNLOCK() PyThread_release_lock(head_mutex)
 #else