summaryrefslogtreecommitdiffstats
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-06-19 00:08:41 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-06-19 00:08:41 (GMT)
commitdceec13dfb88c28b33e8cf4de875f710e909b3e8 (patch)
treeeae82feacae4fc8eddb084f470e3e3064b1cdfce /Python/thread_pthread.h
parent71515510d87895955df4b21233ae4ec1e384614c (diff)
parent5e946bacefc9df0f81b3bd340efe89649889cc2e (diff)
downloadcpython-dceec13dfb88c28b33e8cf4de875f710e909b3e8.zip
cpython-dceec13dfb88c28b33e8cf4de875f710e909b3e8.tar.gz
cpython-dceec13dfb88c28b33e8cf4de875f710e909b3e8.tar.bz2
merge heads
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 49713ce..e90ae7e 100644
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -170,6 +170,7 @@ static void
PyThread__init_thread(void)
{
#if defined(_AIX) && defined(__GNUC__)
+ extern void pthread_init(void);
pthread_init();
#endif
}
@@ -444,6 +445,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));
/* some pthread-like implementations tie the mutex to the cond
@@ -530,6 +532,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 );