[Python-checkins] cpython (merge 3.2 -> 3.3): Issue #16588: Silence unused-but-set warnings in Python/thread_pthread.h
christian.heimes
python-checkins at python.org
Sun Dec 2 08:39:45 CET 2012
http://hg.python.org/cpython/rev/470785a9fdd5
changeset: 80678:470785a9fdd5
branch: 3.3
parent: 80674:323f0aeba89d
parent: 80677:280469ce6669
user: Christian Heimes <christian at cheimes.de>
date: Sun Dec 02 08:38:42 2012 +0100
summary:
Issue #16588: Silence unused-but-set warnings in Python/thread_pthread.h
files:
Misc/NEWS | 2 ++
Python/thread_pthread.h | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,8 @@
Core and Builtins
-----------------
+- Issue #16588: Silence unused-but-set warnings in Python/thread_pthread
+
- Issue #16546: Fix: ast.YieldFrom argument is now mandatory.
- Issue #16514: Fix regression causing a traceback when sys.path[0] is None
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -303,6 +303,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)
@@ -335,6 +336,7 @@
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 @@
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);
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list