Mercurial > cpython-lru_cache-weakref
diff Python/thread_pthread.h @ 80731:0adfbafe8a99 2.7
Closes #16588: Silence unused-but-set warnings in Python/thread_pthread.h
| author | Jesus Cea <jcea@jcea.es> |
|---|---|
| date | Wed, 05 Dec 2012 14:41:11 +0100 |
| parents | ecf0ef85c72a |
| children | a5ef439f3c9e |
line wrap: on
line diff
--- a/Python/thread_pthread.h Tue Dec 04 10:07:16 2012 +0100 +++ b/Python/thread_pthread.h Wed Dec 05 14:41:11 2012 +0100 @@ -284,6 +284,7 @@ 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 @@ 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 @@ 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);
