summaryrefslogtreecommitdiffstats
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2012-12-02 07:38:42 (GMT)
committerChristian Heimes <christian@cheimes.de>2012-12-02 07:38:42 (GMT)
commit17485bf6f93034003555456810cdaaae6eac6eee (patch)
tree2b6011b2b95db6570339e9d7e2fbe1a3b5234317 /Python/thread_pthread.h
parent98cd0f262d0c17b701bceb636cc0ac45253ca58e (diff)
parent56379c0d8fc17e717ac1ad73353b5991adae6832 (diff)
downloadcpython-17485bf6f93034003555456810cdaaae6eac6eee.zip
cpython-17485bf6f93034003555456810cdaaae6eac6eee.tar.gz
cpython-17485bf6f93034003555456810cdaaae6eac6eee.tar.bz2
Issue #16588: Silence unused-but-set warnings in Python/thread_pthread.h
Diffstat (limited to 'Python/thread_pthread.h')
-rw-r--r--Python/thread_pthread.h3
1 files changed, 3 insertions, 0 deletions
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);