diff options
author | Christian Heimes <christian@cheimes.de> | 2012-12-02 07:39:23 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2012-12-02 07:39:23 (GMT) |
commit | 4569467539faecd43f97e836784e0add567f4bdb (patch) | |
tree | 993174b92373c61b6ed78a24756444dda37a02fe | |
parent | 550ab5136a768b8a4ab1b49e1c8ca92ddc053c01 (diff) | |
parent | 17485bf6f93034003555456810cdaaae6eac6eee (diff) | |
download | cpython-4569467539faecd43f97e836784e0add567f4bdb.zip cpython-4569467539faecd43f97e836784e0add567f4bdb.tar.gz cpython-4569467539faecd43f97e836784e0add567f4bdb.tar.bz2 |
Issue #16588: Silence unused-but-set warnings in Python/thread_pthread.h
-rw-r--r-- | Misc/NEWS | 2 | ||||
-rw-r--r-- | Python/thread_pthread.h | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -10,6 +10,8 @@ What's New in Python 3.4.0 Alpha 1? Core and Builtins ----------------- +- Issue #16588: Silence unused-but-set warnings in Python/thread_pthread + - Issue #16592: stringlib_bytes_join doesn't raise MemoryError on allocation failure. diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index 5007aaf..49713ce 100644 --- a/Python/thread_pthread.h +++ b/Python/thread_pthread.h @@ -303,6 +303,7 @@ PyThread_free_lock(PyThread_type_lock lock) sem_t *thelock = (sem_t *)lock; int status, error = 0; + (void) error; /* silence unused-but-set-variable warning */ dprintf(("PyThread_free_lock(%p) called\n", lock)); if (!thelock) @@ -335,6 +336,7 @@ PyThread_acquire_lock_timed(PyThread_type_lock lock, PY_TIMEOUT_T microseconds, int status, error = 0; struct timespec ts; + (void) error; /* silence unused-but-set-variable warning */ dprintf(("PyThread_acquire_lock_timed(%p, %lld, %d) called\n", lock, microseconds, intr_flag)); @@ -385,6 +387,7 @@ PyThread_release_lock(PyThread_type_lock lock) sem_t *thelock = (sem_t *)lock; int status, error = 0; + (void) error; /* silence unused-but-set-variable warning */ dprintf(("PyThread_release_lock(%p) called\n", lock)); status = sem_post(thelock); |