Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dceec13

Browse files
committed
merge heads
2 parents 7151551 + 5e946ba commit dceec13

4 files changed

Lines changed: 7 additions & 1 deletion

File tree

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ Maxim Dzumanenko
334334
Walter Dörwald
335335
Hans Eckardt
336336
Rodolpho Eckhardt
337+
David Edelsohn
337338
John Edmonds
338339
Grant Edwards
339340
John Ehresman

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,9 @@ IDLE
539539
Build
540540
-----
541541

542+
- Issue #18256: Compilation fix for recent AIX releases. Patch by
543+
David Edelsohn.
544+
542545
- Issue #17547: In configure, explicitly pass -Wformat for the benefit for GCC
543546
4.8.
544547

Objects/setobject.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ static int
214214
set_insert_key(register PySetObject *so, PyObject *key, Py_hash_t hash)
215215
{
216216
register setentry *entry;
217-
typedef setentry *(*lookupfunc)(PySetObject *, PyObject *, Py_hash_t);
218217

219218
assert(so->lookup != NULL);
220219
entry = so->lookup(so, key, hash);

Python/thread_pthread.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ static void
170170
PyThread__init_thread(void)
171171
{
172172
#if defined(_AIX) && defined(__GNUC__)
173+
extern void pthread_init(void);
173174
pthread_init();
174175
#endif
175176
}
@@ -444,6 +445,7 @@ PyThread_free_lock(PyThread_type_lock lock)
444445
pthread_lock *thelock = (pthread_lock *)lock;
445446
int status, error = 0;
446447

448+
(void) error; /* silence unused-but-set-variable warning */
447449
dprintf(("PyThread_free_lock(%p) called\n", lock));
448450

449451
/* some pthread-like implementations tie the mutex to the cond
@@ -530,6 +532,7 @@ PyThread_release_lock(PyThread_type_lock lock)
530532
pthread_lock *thelock = (pthread_lock *)lock;
531533
int status, error = 0;
532534

535+
(void) error; /* silence unused-but-set-variable warning */
533536
dprintf(("PyThread_release_lock(%p) called\n", lock));
534537

535538
status = pthread_mutex_lock( &thelock->mut );

0 commit comments

Comments
 (0)