Commit 202b309d authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Silence unused variable warnings with #ifdef LDAP_DYNAMIC_OBJECTS

parent f5dd0177
......@@ -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 */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment