[Python-checkins] cpython (merge 3.3 -> 3.3): merge heads

christian.heimes python-checkins at python.org
Wed Jun 19 02:09:15 CEST 2013


http://hg.python.org/cpython/rev/34e648f2d5f5
changeset:   84212:34e648f2d5f5
branch:      3.3
parent:      84209:9f8efcd78d0d
parent:      84205:f2e373ddfa00
user:        Christian Heimes <christian at cheimes.de>
date:        Wed Jun 19 02:09:00 2013 +0200
summary:
  merge heads

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
@@ -327,6 +327,7 @@
 Walter Dörwald
 Hans Eckardt
 Rodolpho Eckhardt
+David Edelsohn
 John Edmonds
 Grant Edwards
 John Ehresman
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -143,6 +143,9 @@
 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.
 
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -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 );

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


More information about the Python-checkins mailing list