From 56379c0d8fc17e717ac1ad73353b5991adae6832 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sun, 2 Dec 2012 08:37:00 +0100 Subject: Issue #16588: Silence unused-but-set warnings in Python/thread_pthread.h --- Misc/NEWS | 2 ++ Python/thread_pthread.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Misc/NEWS b/Misc/NEWS index d0960b7..d930f32 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -10,6 +10,8 @@ What's New in Python 3.2.4 Core and Builtins ----------------- +- Issue #16588: Silence unused-but-set warnings in Python/thread_pthread.h + - Issue #16306: Fix multiple error messages when unknown command line parameters where passed to the interpreter. Patch by Hieu Nguyen. 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); -- cgit v0.12