[Python-checkins] cpython (2.7): Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.

antoine.pitrou python-checkins at python.org
Tue Jun 18 22:21:48 CEST 2013


http://hg.python.org/cpython/rev/a5ef439f3c9e
changeset:   84207:a5ef439f3c9e
branch:      2.7
parent:      84204:4f4433b12757
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Tue Jun 18 22:17:48 2013 +0200
summary:
  Issue #18256: Compilation fix for recent AIX releases.  Patch by David Edelsohn.

files:
  Misc/ACKS               |  1 +
  Misc/NEWS               |  3 +++
  Python/thread_pthread.h |  3 +++
  3 files changed, 7 insertions(+), 0 deletions(-)


diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -270,6 +270,7 @@
 Maxim Dzumanenko
 Walter Dörwald
 Hans Eckardt
+David Edelsohn
 Grant Edwards
 John Ehresman
 Eric Eisner
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -49,6 +49,9 @@
 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.
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -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 );

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list