diff Python/thread_pthread.h @ 84207:a5ef439f3c9e 2.7

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 0adfbafe8a99
children
line wrap: on
line diff
--- a/Python/thread_pthread.h	Tue Jun 18 13:25:24 2013 +0200
+++ b/Python/thread_pthread.h	Tue Jun 18 22:17:48 2013 +0200
@@ -145,6 +145,7 @@
 PyThread__init_thread(void)
 {
 #if defined(_AIX) && defined(__GNUC__)
+    extern void pthread_init(void);
     pthread_init();
 #endif
 }
@@ -394,6 +395,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));
 
     status = pthread_mutex_destroy( &thelock->mut );
@@ -445,6 +447,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 );