]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #16588: Silence unused-but-set warnings in Python/thread_pthread.h
authorChristian Heimes <christian@cheimes.de>
Sun, 2 Dec 2012 07:37:00 +0000 (08:37 +0100)
committerChristian Heimes <christian@cheimes.de>
Sun, 2 Dec 2012 07:37:00 +0000 (08:37 +0100)
Misc/NEWS
Python/thread_pthread.h

index d0960b7a2bf16ba49fc82e9631a305b87b8b9108..d930f3215449506bf41b775ca0f34483ae330b7c 100644 (file)
--- 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.
 
index 3cde03567c3e9cb700316f55dfa2ad3d4e466683..de42f1a165e9d92154acffb447c7ad4a68908c1c 100644 (file)
@@ -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);