diff options
author | Christian Heimes <christian@cheimes.de> | 2012-12-02 07:37:00 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2012-12-02 07:37:00 (GMT) |
commit | 56379c0d8fc17e717ac1ad73353b5991adae6832 (patch) | |
tree | e11ebbb9f1713563f2bf3311d4691aff3689966a /Python/thread_pthread.h | |
parent | 8ca1d5f7624b6304dceb575f334fcab8a17e59b2 (diff) | |
download | cpython-56379c0d8fc17e717ac1ad73353b5991adae6832.zip cpython-56379c0d8fc17e717ac1ad73353b5991adae6832.tar.gz cpython-56379c0d8fc17e717ac1ad73353b5991adae6832.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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index 3cde035..de42f1a 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); |