mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +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 aliasObjectClass;
|
||||||
static ObjectClassSchemaCheckFN referralObjectClass;
|
static ObjectClassSchemaCheckFN referralObjectClass;
|
||||||
static ObjectClassSchemaCheckFN subentryObjectClass;
|
static ObjectClassSchemaCheckFN subentryObjectClass;
|
||||||
|
#ifdef LDAP_DYNAMIC_OBJECTS
|
||||||
static ObjectClassSchemaCheckFN dynamicObjectClass;
|
static ObjectClassSchemaCheckFN dynamicObjectClass;
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct slap_schema_oc_map {
|
static struct slap_schema_oc_map {
|
||||||
char *ssom_name;
|
char *ssom_name;
|
||||||
@ -417,7 +419,9 @@ static AttributeTypeSchemaCheckFN aliasAttribute;
|
|||||||
static AttributeTypeSchemaCheckFN referralAttribute;
|
static AttributeTypeSchemaCheckFN referralAttribute;
|
||||||
static AttributeTypeSchemaCheckFN subentryAttribute;
|
static AttributeTypeSchemaCheckFN subentryAttribute;
|
||||||
static AttributeTypeSchemaCheckFN administrativeRoleAttribute;
|
static AttributeTypeSchemaCheckFN administrativeRoleAttribute;
|
||||||
|
#ifdef LDAP_DYNAMIC_OBJECTS
|
||||||
static AttributeTypeSchemaCheckFN dynamicAttribute;
|
static AttributeTypeSchemaCheckFN dynamicAttribute;
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct slap_schema_ad_map {
|
static struct slap_schema_ad_map {
|
||||||
char *ssam_name;
|
char *ssam_name;
|
||||||
@ -1401,6 +1405,7 @@ static int subentryObjectClass (
|
|||||||
return LDAP_SUCCESS;
|
return LDAP_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef LDAP_DYNAMIC_OBJECTS
|
||||||
static int dynamicObjectClass (
|
static int dynamicObjectClass (
|
||||||
Backend *be,
|
Backend *be,
|
||||||
Entry *e,
|
Entry *e,
|
||||||
@ -1419,6 +1424,7 @@ static int dynamicObjectClass (
|
|||||||
|
|
||||||
return LDAP_SUCCESS;
|
return LDAP_SUCCESS;
|
||||||
}
|
}
|
||||||
|
#endif /* LDAP_DYNAMIC_OBJECTS */
|
||||||
|
|
||||||
static int rootDseAttribute (
|
static int rootDseAttribute (
|
||||||
Backend *be,
|
Backend *be,
|
||||||
@ -1541,6 +1547,7 @@ static int administrativeRoleAttribute (
|
|||||||
return LDAP_OBJECT_CLASS_VIOLATION;
|
return LDAP_OBJECT_CLASS_VIOLATION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef LDAP_DYNAMIC_OBJECTS
|
||||||
static int dynamicAttribute (
|
static int dynamicAttribute (
|
||||||
Backend *be,
|
Backend *be,
|
||||||
Entry *e,
|
Entry *e,
|
||||||
@ -1566,3 +1573,4 @@ static int dynamicAttribute (
|
|||||||
|
|
||||||
return LDAP_SUCCESS;
|
return LDAP_SUCCESS;
|
||||||
}
|
}
|
||||||
|
#endif /* LDAP_DYNAMIC_OBJECTS */
|
||||||
|
Loading…
Reference in New Issue
Block a user