From: Howard Chu Date: Tue, 11 Jan 2011 21:34:55 +0000 (+0000) Subject: Silence stupid MUTEX_FIRSTCREATE warnings X-Git-Tag: MIGRATION_CVS2GIT~215 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6a544b7193d90d278a18437e355ee884dd9d9fe2;p=openldap Silence stupid MUTEX_FIRSTCREATE warnings --- 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