mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Removing warnings by gcc -Wall -- cast ugly || to void.
This commit is contained in:
parent
20b2ca9d19
commit
9fb6af9640
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
#ifdef WITH_THREAD
|
#ifdef WITH_THREAD
|
||||||
#include "pythread.h"
|
#include "pythread.h"
|
||||||
static PyThread_type_lock head_mutex = NULL; /* Protects interp->tstate_head */
|
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_LOCK() PyThread_acquire_lock(head_mutex, WAIT_LOCK)
|
||||||
#define HEAD_UNLOCK() PyThread_release_lock(head_mutex)
|
#define HEAD_UNLOCK() PyThread_release_lock(head_mutex)
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue