mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #16588: Silence unused-but-set warnings in Python/thread_pthread.h
This commit is contained in:
commit
17485bf6f9
2 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,8 @@ What's New in Python 3.3.1?
|
||||||
Core and Builtins
|
Core and Builtins
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
- Issue #16588: Silence unused-but-set warnings in Python/thread_pthread
|
||||||
|
|
||||||
- Issue #16546: Fix: ast.YieldFrom argument is now mandatory.
|
- Issue #16546: Fix: ast.YieldFrom argument is now mandatory.
|
||||||
|
|
||||||
- Issue #16514: Fix regression causing a traceback when sys.path[0] is None
|
- Issue #16514: Fix regression causing a traceback when sys.path[0] is None
|
||||||
|
|
|
@ -303,6 +303,7 @@ PyThread_free_lock(PyThread_type_lock lock)
|
||||||
sem_t *thelock = (sem_t *)lock;
|
sem_t *thelock = (sem_t *)lock;
|
||||||
int status, error = 0;
|
int status, error = 0;
|
||||||
|
|
||||||
|
(void) error; /* silence unused-but-set-variable warning */
|
||||||
dprintf(("PyThread_free_lock(%p) called\n", lock));
|
dprintf(("PyThread_free_lock(%p) called\n", lock));
|
||||||
|
|
||||||
if (!thelock)
|
if (!thelock)
|
||||||
|
@ -335,6 +336,7 @@ PyThread_acquire_lock_timed(PyThread_type_lock lock, PY_TIMEOUT_T microseconds,
|
||||||
int status, error = 0;
|
int status, error = 0;
|
||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
|
|
||||||
|
(void) error; /* silence unused-but-set-variable warning */
|
||||||
dprintf(("PyThread_acquire_lock_timed(%p, %lld, %d) called\n",
|
dprintf(("PyThread_acquire_lock_timed(%p, %lld, %d) called\n",
|
||||||
lock, microseconds, intr_flag));
|
lock, microseconds, intr_flag));
|
||||||
|
|
||||||
|
@ -385,6 +387,7 @@ PyThread_release_lock(PyThread_type_lock lock)
|
||||||
sem_t *thelock = (sem_t *)lock;
|
sem_t *thelock = (sem_t *)lock;
|
||||||
int status, error = 0;
|
int status, error = 0;
|
||||||
|
|
||||||
|
(void) error; /* silence unused-but-set-variable warning */
|
||||||
dprintf(("PyThread_release_lock(%p) called\n", lock));
|
dprintf(("PyThread_release_lock(%p) called\n", lock));
|
||||||
|
|
||||||
status = sem_post(thelock);
|
status = sem_post(thelock);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue