From 55d1933a896cbcdd833dbda87c93d0f5391da07a Mon Sep 17 00:00:00 2001 From: Nathan Hjelm Date: Wed, 22 Jun 2016 15:03:21 -0600 Subject: [PATCH] opal/sync: fix warnings Signed-off-by: Nathan Hjelm --- opal/threads/wait_sync.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/opal/threads/wait_sync.h b/opal/threads/wait_sync.h index 3a4b9ef20f9..b29f01c4748 100644 --- a/opal/threads/wait_sync.h +++ b/opal/threads/wait_sync.h @@ -30,8 +30,6 @@ typedef struct ompi_wait_sync_t { #define REQUEST_COMPLETED (void*)1L #define SYNC_WAIT(sync) (opal_using_threads() ? sync_wait_mt (sync) : sync_wait_st (sync)) -#define PTHREAD_COND_INIT(a,b) (opal_using_threads() ? pthread_cond_init (a,b) : 0) -#define PTHREAD_MUTEX_INIT(a,b) (opal_using_threads() ? pthread_mutex_init (a,b) : 0) #define WAIT_SYNC_RELEASE(sync) \ if (opal_using_threads()) { \ @@ -64,8 +62,8 @@ static inline int sync_wait_st (ompi_wait_sync_t *sync) (sync)->prev = NULL; \ (sync)->status = 0; \ if (opal_using_threads()) { \ - PTHREAD_COND_INIT(&(sync)->condition, NULL); \ - PTHREAD_MUTEX_INIT(&(sync)->lock, NULL); \ + pthread_cond_init (&(sync)->condition, NULL); \ + pthread_mutex_init (&(sync)->lock, NULL); \ } \ } while(0)