]> git.ipfire.org Git - thirdparty/Python/cpython.git/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 15daf505aa2f7cdc2aee632d20374f08dae56e7c..fc0d9d216be74735704745d101491bba29ddb2ed 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -270,6 +270,7 @@ Josip Dzolonga
 Maxim Dzumanenko
 Walter Dörwald
 Hans Eckardt
+David Edelsohn
 Grant Edwards
 John Ehresman
 Eric Eisner
index 2bbcd7059f8fbf2e5500c88db6a757d5b81b910c..941818340ca40df20b7554f185b0765718b03a9d 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -49,6 +49,9 @@ Library
 Build
 -----
 
+- Issue #18256: Compilation fix for recent AIX releases.  Patch by
+  David Edelsohn.
+
 - Issue #18098: The deprecated OS X Build Applet.app fails to build on
   OS X 10.8 systems because the Apple-deprecated QuickDraw headers have
   been removed from Xcode 4.  Skip building it in this case.
index c1c92d1a15eb5175f24d73ad3af834adde759a7c..c9ed796cd0fe0afe26af863f249495140ea77a2b 100644 (file)
@@ -145,6 +145,7 @@ static void
 PyThread__init_thread(void)
 {
 #if defined(_AIX) && defined(__GNUC__)
+    extern void pthread_init(void);
     pthread_init();
 #endif
 }
@@ -394,6 +395,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));
 
     status = pthread_mutex_destroy( &thelock->mut );
@@ -445,6 +447,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 );