mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Silence stupid MUTEX_FIRSTCREATE warnings
This commit is contained in:
parent
c8630fd3a0
commit
6a544b7193
@ -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 */
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user