diff Python/thread_pthread.h @ 84205:f2e373ddfa00 3.3

Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.
author Antoine Pitrou <solipsis@pitrou.net>
date Tue, 18 Jun 2013 22:17:48 +0200
parents 470785a9fdd5
children 9af1905f20af
line wrap: on
line diff
--- a/Python/thread_pthread.h	Tue Jun 18 13:22:17 2013 +0200
+++ b/Python/thread_pthread.h	Tue Jun 18 22:17:48 2013 +0200
@@ -170,6 +170,7 @@
 PyThread__init_thread(void)
 {
 #if defined(_AIX) && defined(__GNUC__)
+    extern void pthread_init(void);
     pthread_init();
 #endif
 }
@@ -444,6 +445,7 @@
     pthread_lock *thelock = (pthread_lock *)lock;
     int status, error = 0;
 
+    (void) error; /* silence unused-but-set-variable warning */
     dprintf(("PyThread_free_lock(%p) called\n", lock));
 
     /* some pthread-like implementations tie the mutex to the cond
@@ -530,6 +532,7 @@
     pthread_lock *thelock = (pthread_lock *)lock;
     int status, error = 0;
 
+    (void) error; /* silence unused-but-set-variable warning */
     dprintf(("PyThread_release_lock(%p) called\n", lock));
 
     status = pthread_mutex_lock( &thelock->mut );