From 951f49705230ee5be8b0629aaf12e961e64cd2e9 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Tue, 18 Jun 2013 22:17:48 +0200 Subject: Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn. --- Python/thread_pthread.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Python') 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 ); -- cgit v1.2.1