Silence stupid MUTEX_FIRSTCREATE warnings

This commit is contained in:
Howard Chu 2011-01-11 21:34:55 +00:00
parent c8630fd3a0
commit 6a544b7193
2 changed files with 2 additions and 1 deletions

View File

@ -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 */

View File

@ -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