diff Python/thread_pthread.h @ 80678:470785a9fdd5 3.3

Issue #16588: Silence unused-but-set warnings in Python/thread_pthread.h
author Christian Heimes <christian@cheimes.de>
date Sun, 02 Dec 2012 08:38:42 +0100
parents 6d146e2ae9a9 280469ce6669
children f2e373ddfa00
line wrap: on
line diff
--- a/Python/thread_pthread.h	Sun Dec 02 08:23:05 2012 +0100
+++ b/Python/thread_pthread.h	Sun Dec 02 08:38:42 2012 +0100
@@ -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);