diff options
| author | Christian Heimes <christian@cheimes.de> | 2012-12-02 08:39:23 +0100 |
|---|---|---|
| committer | Christian Heimes <christian@cheimes.de> | 2012-12-02 08:39:23 +0100 |
| commit | 60b54033cd68fdabbf51cc065fe594e40357ace4 (patch) | |
| tree | 4617a3347963eb818fd28b1ac9c10cdf968f35e9 /Python | |
| parent | d457a6614a2ee0f9ca0a04b12e8d337abb398ee7 (diff) | |
| parent | 5ebbc9269cb3f7b0c880f84b0dde818360186843 (diff) | |
| download | cpython-60b54033cd68fdabbf51cc065fe594e40357ace4.tar.gz | |
Issue #16588: Silence unused-but-set warnings in Python/thread_pthread.h
Diffstat (limited to 'Python')
| -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 5007aaf0b7..49713ced27 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); |
