From: Hallvard Furuseth Date: Wed, 27 Jul 2005 08:50:37 +0000 (+0000) Subject: Silence unused variable warnings with #ifdef LDAP_DYNAMIC_OBJECTS X-Git-Tag: OPENLDAP_AC_BP~182 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=202b309dd11b451ff4d62b7caa5bc2419ab4b684;p=openldap Silence unused variable warnings with #ifdef LDAP_DYNAMIC_OBJECTS --- diff --git a/servers/slapd/schema_prep.c b/servers/slapd/schema_prep.c index 873e22303f..50e99c12b4 100644 --- a/servers/slapd/schema_prep.c +++ b/servers/slapd/schema_prep.c @@ -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 */