Skip to content

Commit 9fb6af9

Browse files
author
Moshe Zadka
committed
Removing warnings by gcc -Wall -- cast ugly || to void.
1 parent 20b2ca9 commit 9fb6af9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/pystate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
2222
#ifdef WITH_THREAD
2323
#include "pythread.h"
2424
static PyThread_type_lock head_mutex = NULL; /* Protects interp->tstate_head */
25-
#define HEAD_INIT() (head_mutex || (head_mutex = PyThread_allocate_lock()))
25+
#define HEAD_INIT() (void)(head_mutex || (head_mutex = PyThread_allocate_lock()))
2626
#define HEAD_LOCK() PyThread_acquire_lock(head_mutex, WAIT_LOCK)
2727
#define HEAD_UNLOCK() PyThread_release_lock(head_mutex)
2828
#else

0 commit comments

Comments
 (0)