From 6a544b7193d90d278a18437e355ee884dd9d9fe2 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 11 Jan 2011 21:34:55 +0000 Subject: [PATCH] Silence stupid MUTEX_FIRSTCREATE warnings --- libraries/libldap/init.c | 2 ++ libraries/libldap/ldap-int.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/libldap/init.c b/libraries/libldap/init.c index 06b2c02287..9ad18bdffb 100644 --- a/libraries/libldap/init.c +++ b/libraries/libldap/init.c @@ -510,7 +510,9 @@ ldap_int_destroy_global_options(void) */ void ldap_int_initialize_global_options( struct ldapoptions *gopts, int *dbglvl ) { +#ifdef LDAP_R_COMPILE LDAP_PVT_MUTEX_FIRSTCREATE(gopts->ldo_mutex); +#endif LDAP_MUTEX_LOCK( &gopts->ldo_mutex ); if (gopts->ldo_valid == LDAP_INITIALIZED) { /* someone else got here first */ diff --git a/libraries/libldap/ldap-int.h b/libraries/libldap/ldap-int.h index 545e0e3c87..c1866b325a 100644 --- a/libraries/libldap/ldap-int.h +++ b/libraries/libldap/ldap-int.h @@ -189,7 +189,6 @@ struct ldapoptions { #define LDAP_LDO_MUTEX_NULLARG , LDAP_PVT_MUTEX_NULL #else #define LDAP_LDO_MUTEX_NULLARG -#define LDAP_PVT_MUTEX_FIRSTCREATE(m) ((void) 0) #endif #ifdef LDAP_CONNECTIONLESS -- 2.39.5