]> granicus.if.org Git - python/commitdiff
Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 18 Jun 2013 20:17:48 +0000 (22:17 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 18 Jun 2013 20:17:48 +0000 (22:17 +0200)
Misc/ACKS
Misc/NEWS
Python/thread_pthread.h

index e8aac41a4f57bf4e7b858ce2b1c8fd68c925ffc5..f3e427a7dd1a1a42fedce381c80b4fbf05b03a67 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -327,6 +327,7 @@ Maxim Dzumanenko
 Walter Dörwald
 Hans Eckardt
 Rodolpho Eckhardt
+David Edelsohn
 John Edmonds
 Grant Edwards
 John Ehresman
index a9eeeffd373df1a8093f5d545706b797183ea91e..d9b3f4e85185e3c692d225086be1d71d4df8a492 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -141,6 +141,9 @@ Tools/Demos
 Build
 -----
 
+- Issue #18256: Compilation fix for recent AIX releases.  Patch by
+  David Edelsohn.
+
 - Issue #15172: Document NASM 2.10+ as requirement for building OpenSSL 1.0.1
   on Windows.
 
index 49713ced271daeba847c98d66b68f3247a362c60..e90ae7e5b97816170265394381dc825a8068e488 100644 (file)
@@ -170,6 +170,7 @@ static void
 PyThread__init_thread(void)
 {
 #if defined(_AIX) && defined(__GNUC__)
+    extern void pthread_init(void);
     pthread_init();
 #endif
 }
@@ -444,6 +445,7 @@ PyThread_free_lock(PyThread_type_lock lock)
     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 @@ PyThread_release_lock(PyThread_type_lock lock)
     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 );