diff options
author | Moshe Zadka <moshez@math.huji.ac.il> | 2000-08-04 21:27:47 (GMT) |
---|---|---|
committer | Moshe Zadka <moshez@math.huji.ac.il> | 2000-08-04 21:27:47 (GMT) |
commit | 9fb6af9640994b6216897d3a6ce89362aea22f6a (patch) | |
tree | edeb41647bd81cb6b579abd1042e9b02f5879b1d /Python/pystate.c | |
parent | 20b2ca9d1950a7a8e436ec1098f0a5d7cbe7dd11 (diff) | |
download | cpython-9fb6af9640994b6216897d3a6ce89362aea22f6a.zip cpython-9fb6af9640994b6216897d3a6ce89362aea22f6a.tar.gz cpython-9fb6af9640994b6216897d3a6ce89362aea22f6a.tar.bz2 |
Removing warnings by gcc -Wall -- cast ugly || to void.
Diffstat (limited to 'Python/pystate.c')
-rw-r--r-- | Python/pystate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index b9dee6e..1cd9cca 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -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 |