Commit 9a00e0a4 authored by Antoine Pitrou's avatar Antoine Pitrou

Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.

parent f0400bab
...@@ -327,6 +327,7 @@ Maxim Dzumanenko ...@@ -327,6 +327,7 @@ Maxim Dzumanenko
Walter Dörwald Walter Dörwald
Hans Eckardt Hans Eckardt
Rodolpho Eckhardt Rodolpho Eckhardt
David Edelsohn
John Edmonds John Edmonds
Grant Edwards Grant Edwards
John Ehresman John Ehresman
......
...@@ -141,6 +141,9 @@ Tools/Demos ...@@ -141,6 +141,9 @@ Tools/Demos
Build 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 - Issue #15172: Document NASM 2.10+ as requirement for building OpenSSL 1.0.1
on Windows. on Windows.
......
...@@ -170,6 +170,7 @@ static void ...@@ -170,6 +170,7 @@ static void
PyThread__init_thread(void) PyThread__init_thread(void)
{ {
#if defined(_AIX) && defined(__GNUC__) #if defined(_AIX) && defined(__GNUC__)
extern void pthread_init(void);
pthread_init(); pthread_init();
#endif #endif
} }
...@@ -444,6 +445,7 @@ PyThread_free_lock(PyThread_type_lock lock) ...@@ -444,6 +445,7 @@ PyThread_free_lock(PyThread_type_lock lock)
pthread_lock *thelock = (pthread_lock *)lock; pthread_lock *thelock = (pthread_lock *)lock;
int status, error = 0; int status, error = 0;
(void) error; /* silence unused-but-set-variable warning */
dprintf(("PyThread_free_lock(%p) called\n", lock)); dprintf(("PyThread_free_lock(%p) called\n", lock));
/* some pthread-like implementations tie the mutex to the cond /* some pthread-like implementations tie the mutex to the cond
...@@ -530,6 +532,7 @@ PyThread_release_lock(PyThread_type_lock lock) ...@@ -530,6 +532,7 @@ PyThread_release_lock(PyThread_type_lock lock)
pthread_lock *thelock = (pthread_lock *)lock; pthread_lock *thelock = (pthread_lock *)lock;
int status, error = 0; int status, error = 0;
(void) error; /* silence unused-but-set-variable warning */
dprintf(("PyThread_release_lock(%p) called\n", lock)); dprintf(("PyThread_release_lock(%p) called\n", lock));
status = pthread_mutex_lock( &thelock->mut ); status = pthread_mutex_lock( &thelock->mut );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment