summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-06-18 22:17:48 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2013-06-18 22:17:48 +0200
commit951f49705230ee5be8b0629aaf12e961e64cd2e9 (patch)
treedf9a065e1f1fdd5686c811d6b9ab85d12a6e6e31 /Python
parent3282ce433c1fa62f401327d211c12e455cb430b9 (diff)
downloadcpython-951f49705230ee5be8b0629aaf12e961e64cd2e9.tar.gz
Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.
Diffstat (limited to 'Python')
-rw-r--r--Python/thread_pthread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
index c1c92d1a15..c9ed796cd0 100644
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -145,6 +145,7 @@ static void
PyThread__init_thread(void)
{
#if defined(_AIX) && defined(__GNUC__)
+ extern void pthread_init(void);
pthread_init();
#endif
}
@@ -394,6 +395,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));
status = pthread_mutex_destroy( &thelock->mut );
@@ -445,6 +447,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 );