summaryrefslogtreecommitdiff
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2012-12-02 08:37:00 +0100
committerChristian Heimes <christian@cheimes.de>2012-12-02 08:37:00 +0100
commitc87e031f0c810cbf179cedde3b81de386c72f014 (patch)
tree8417a87f5a00a41c9078ec55f18a2fde4a043779 /Python/thread_pthread.h
parent8fcf8fcdd2f88b9a422d3778c5b8d2b14edb1edc (diff)
downloadcpython-c87e031f0c810cbf179cedde3b81de386c72f014.tar.gz
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 3cde03567c..de42f1a165 100644
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -309,6 +309,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)
@@ -341,6 +342,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));
@@ -391,6 +393,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);