diff Python/pystate.c @ 13866:dfdb601cee1c legacy-trunk

Removing warnings by gcc -Wall -- cast ugly || to void.
author Moshe Zadka <moshez@math.huji.ac.il>
date Fri, 04 Aug 2000 21:27:47 +0000
parents f79434ee41fa
children 6f6f965c5e2d
line wrap: on
line diff
--- a/Python/pystate.c	Fri Aug 04 17:03:58 2000 +0000
+++ b/Python/pystate.c	Fri Aug 04 21:27:47 2000 +0000
@@ -22,7 +22,7 @@
 #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