mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Silence unused variable warnings with #ifdef LDAP_DYNAMIC_OBJECTS
This commit is contained in:
parent
f5dd017738
commit
202b309dd1
@ -321,7 +321,9 @@ static ObjectClassSchemaCheckFN rootDseObjectClass;
|
||||
static ObjectClassSchemaCheckFN aliasObjectClass;
|
||||
static ObjectClassSchemaCheckFN referralObjectClass;
|
||||
static ObjectClassSchemaCheckFN subentryObjectClass;
|
||||
#ifdef LDAP_DYNAMIC_OBJECTS
|
||||
static ObjectClassSchemaCheckFN dynamicObjectClass;
|
||||
#endif
|
||||
|
||||
static struct slap_schema_oc_map {
|
||||
char *ssom_name;
|
||||
@ -417,7 +419,9 @@ static AttributeTypeSchemaCheckFN aliasAttribute;
|
||||
static AttributeTypeSchemaCheckFN referralAttribute;
|
||||
static AttributeTypeSchemaCheckFN subentryAttribute;
|
||||
static AttributeTypeSchemaCheckFN administrativeRoleAttribute;
|
||||
#ifdef LDAP_DYNAMIC_OBJECTS
|
||||
static AttributeTypeSchemaCheckFN dynamicAttribute;
|
||||
#endif
|
||||
|
||||
static struct slap_schema_ad_map {
|
||||
char *ssam_name;
|
||||
@ -1401,6 +1405,7 @@ static int subentryObjectClass (
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
|
||||
#ifdef LDAP_DYNAMIC_OBJECTS
|
||||
static int dynamicObjectClass (
|
||||
Backend *be,
|
||||
Entry *e,
|
||||
@ -1419,6 +1424,7 @@ static int dynamicObjectClass (
|
||||
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
#endif /* LDAP_DYNAMIC_OBJECTS */
|
||||
|
||||
static int rootDseAttribute (
|
||||
Backend *be,
|
||||
@ -1541,6 +1547,7 @@ static int administrativeRoleAttribute (
|
||||
return LDAP_OBJECT_CLASS_VIOLATION;
|
||||
}
|
||||
|
||||
#ifdef LDAP_DYNAMIC_OBJECTS
|
||||
static int dynamicAttribute (
|
||||
Backend *be,
|
||||
Entry *e,
|
||||
@ -1566,3 +1573,4 @@ static int dynamicAttribute (
|
||||
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
#endif /* LDAP_DYNAMIC_OBJECTS */
|
||||
|
Loading…
Reference in New Issue
Block a user