Commit 7e9cec04 authored by Antoine Pitrou's avatar Antoine Pitrou

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

parent 3aa138fe
...@@ -270,6 +270,7 @@ Josip Dzolonga ...@@ -270,6 +270,7 @@ Josip Dzolonga
Maxim Dzumanenko Maxim Dzumanenko
Walter Dörwald Walter Dörwald
Hans Eckardt Hans Eckardt
David Edelsohn
Grant Edwards Grant Edwards
John Ehresman John Ehresman
Eric Eisner Eric Eisner
......
...@@ -49,6 +49,9 @@ Library ...@@ -49,6 +49,9 @@ Library
Build Build
----- -----
- Issue #18256: Compilation fix for recent AIX releases. Patch by
David Edelsohn.
- Issue #18098: The deprecated OS X Build Applet.app fails to build on - Issue #18098: The deprecated OS X Build Applet.app fails to build on
OS X 10.8 systems because the Apple-deprecated QuickDraw headers have OS X 10.8 systems because the Apple-deprecated QuickDraw headers have
been removed from Xcode 4. Skip building it in this case. been removed from Xcode 4. Skip building it in this case.
......
...@@ -145,6 +145,7 @@ static void ...@@ -145,6 +145,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
} }
...@@ -394,6 +395,7 @@ PyThread_free_lock(PyThread_type_lock lock) ...@@ -394,6 +395,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));
status = pthread_mutex_destroy( &thelock->mut ); status = pthread_mutex_destroy( &thelock->mut );
...@@ -445,6 +447,7 @@ PyThread_release_lock(PyThread_type_lock lock) ...@@ -445,6 +447,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