summaryrefslogtreecommitdiffstats
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-06-18 20:17:48 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-06-18 20:17:48 (GMT)
commit7e9cec04abba6c5c1ac36634129462f434c1083b (patch)
tree72a515f7e794af2400eba2e278fe373c61c585e1 /Python/thread_pthread.h
parent3aa138fe1dd59d8fc790436e2226cea6e03b0490 (diff)
downloadcpython-7e9cec04abba6c5c1ac36634129462f434c1083b.zip
cpython-7e9cec04abba6c5c1ac36634129462f434c1083b.tar.gz
cpython-7e9cec04abba6c5c1ac36634129462f434c1083b.tar.bz2
Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.
Diffstat (limited to 'Python/thread_pthread.h')
-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 c1c92d1..c9ed796 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 );