Silence unused variable warnings with #ifdef LDAP_DYNAMIC_OBJECTS

This commit is contained in:
Hallvard Furuseth 2005-07-27 08:50:37 +00:00
parent f5dd017738
commit 202b309dd1

View File

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