Skip to content

Commit c46846c

Browse files
committed
Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.
1 parent 1d65011 commit c46846c

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ Josip Dzolonga
270270
Maxim Dzumanenko
271271
Walter Dörwald
272272
Hans Eckardt
273+
David Edelsohn
273274
Grant Edwards
274275
John Ehresman
275276
Eric Eisner

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ Library
4949
Build
5050
-----
5151

52+
- Issue #18256: Compilation fix for recent AIX releases. Patch by
53+
David Edelsohn.
54+
5255
- Issue #18098: The deprecated OS X Build Applet.app fails to build on
5356
OS X 10.8 systems because the Apple-deprecated QuickDraw headers have
5457
been removed from Xcode 4. Skip building it in this case.

Python/thread_pthread.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ static void
145145
PyThread__init_thread(void)
146146
{
147147
#if defined(_AIX) && defined(__GNUC__)
148+
extern void pthread_init(void);
148149
pthread_init();
149150
#endif
150151
}
@@ -394,6 +395,7 @@ PyThread_free_lock(PyThread_type_lock lock)
394395
pthread_lock *thelock = (pthread_lock *)lock;
395396
int status, error = 0;
396397

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

399401
status = pthread_mutex_destroy( &thelock->mut );
@@ -445,6 +447,7 @@ PyThread_release_lock(PyThread_type_lock lock)
445447
pthread_lock *thelock = (pthread_lock *)lock;
446448
int status, error = 0;
447449

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

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

0 commit comments

Comments
 (0)