diff options
author | Christian Heimes <christian@cheimes.de> | 2013-06-19 02:08:41 +0200 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-06-19 02:08:41 +0200 |
commit | dceec13dfb88c28b33e8cf4de875f710e909b3e8 (patch) | |
tree | eae82feacae4fc8eddb084f470e3e3064b1cdfce | |
parent | 71515510d87895955df4b21233ae4ec1e384614c (diff) | |
parent | 5e946bacefc9df0f81b3bd340efe89649889cc2e (diff) | |
download | cpython-git-dceec13dfb88c28b33e8cf4de875f710e909b3e8.tar.gz |
merge heads
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS | 3 | ||||
-rw-r--r-- | Objects/setobject.c | 1 | ||||
-rw-r--r-- | Python/thread_pthread.h | 3 |
4 files changed, 7 insertions, 1 deletions
@@ -334,6 +334,7 @@ Maxim Dzumanenko Walter Dörwald Hans Eckardt Rodolpho Eckhardt +David Edelsohn John Edmonds Grant Edwards John Ehresman @@ -539,6 +539,9 @@ IDLE Build ----- +- Issue #18256: Compilation fix for recent AIX releases. Patch by + David Edelsohn. + - Issue #17547: In configure, explicitly pass -Wformat for the benefit for GCC 4.8. diff --git a/Objects/setobject.c b/Objects/setobject.c index c484dce413..ea5a24c516 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -214,7 +214,6 @@ static int set_insert_key(register PySetObject *so, PyObject *key, Py_hash_t hash) { register setentry *entry; - typedef setentry *(*lookupfunc)(PySetObject *, PyObject *, Py_hash_t); assert(so->lookup != NULL); entry = so->lookup(so, key, hash); diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index 49713ced27..e90ae7e5b9 100644 --- a/Python/thread_pthread.h +++ b/Python/thread_pthread.h @@ -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 ); |