summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2012-12-05 14:41:11 +0100
committerJesus Cea <jcea@jcea.es>2012-12-05 14:41:11 +0100
commit7ddd9c21da9ffb47a9b669f584d4666deca23d1c (patch)
tree44794e3fc1a59c3749f567c53f1c03d68319420e /Python
parent8c7c697e49336ef764462494a02250023716e82e (diff)
downloadcpython-git-7ddd9c21da9ffb47a9b669f584d4666deca23d1c.tar.gz
Closes #16588: Silence unused-but-set warnings in Python/thread_pthread.h
Diffstat (limited to 'Python')
-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 44e2552a8a..c1c92d1a15 100644
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -284,6 +284,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)
@@ -314,6 +315,7 @@ PyThread_acquire_lock(PyThread_type_lock lock, int waitflag)
sem_t *thelock = (sem_t *)lock;
int status, error = 0;
+ (void) error; /* silence unused-but-set-variable warning */
dprintf(("PyThread_acquire_lock(%p, %d) called\n", lock, waitflag));
do {
@@ -341,6 +343,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);