From: Hallvard Furuseth Date: Thu, 14 Jul 2005 19:18:55 +0000 (+0000) Subject: Silence "unused variable" warnings X-Git-Tag: OPENLDAP_AC_BP~406 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d449c9d08b39c304bdd94285870e30dcbe375c77;p=openldap Silence "unused variable" warnings --- diff --git a/libraries/libldap/result.c b/libraries/libldap/result.c index 5eaa9ab31b..4180c31a32 100644 --- a/libraries/libldap/result.c +++ b/libraries/libldap/result.c @@ -386,7 +386,7 @@ try_read1msg( LDAPMessage **result ) { BerElement *ber; - LDAPMessage *new, *l, *prev, *tmp, *chain_head; + LDAPMessage *new, *l, *prev; ber_int_t id; ber_tag_t tag; ber_len_t len; @@ -397,6 +397,7 @@ try_read1msg( int rc, refer_cnt, hadref, simple_request; ber_int_t lderr; #ifdef LDAP_CONNECTIONLESS + LDAPMessage *tmp, *chain_head; int firstmsg = 1, moremsgs = 0, isv2 = 0; #endif /* diff --git a/servers/slapd/slapi/slapi_ext.c b/servers/slapd/slapi/slapi_ext.c index cb1d66e0ec..7fa826ff63 100644 --- a/servers/slapd/slapi/slapi_ext.c +++ b/servers/slapd/slapi/slapi_ext.c @@ -236,7 +236,7 @@ int slapi_register_object_extension( int slapi_int_create_object_extensions(int objecttype, void *object) { #ifdef LDAP_SLAPI - int i, rc; + int i; struct slapi_extension_block *eblock; void **peblock; void *parent; @@ -289,7 +289,7 @@ int slapi_int_create_object_extensions(int objecttype, void *object) int slapi_int_free_object_extensions(int objecttype, void *object) { #ifdef LDAP_SLAPI - int i, rc; + int i; struct slapi_extension_block *eblock; void **peblock; void *parent; @@ -330,7 +330,7 @@ int slapi_int_free_object_extensions(int objecttype, void *object) int slapi_int_clear_object_extensions(int objecttype, void *object) { #ifdef LDAP_SLAPI - int i, rc; + int i; struct slapi_extension_block *eblock; void *parent; diff --git a/servers/slapd/slapi/slapi_ops.c b/servers/slapd/slapi/slapi_ops.c index 5e85fe80b8..0ae50bfa4d 100644 --- a/servers/slapd/slapi/slapi_ops.c +++ b/servers/slapd/slapi/slapi_ops.c @@ -61,7 +61,7 @@ internal_search_entry( Operation *op, SlapReply *rs ) { - int nentries = 0, len = 0, i = 0; + int nentries = 0, i = 0; Slapi_Entry **head = NULL, **tp; Slapi_Entry *entry; diff --git a/servers/slapd/slapi/slapi_utils.c b/servers/slapd/slapi/slapi_utils.c index 6689fb41b7..550ccb6c90 100644 --- a/servers/slapd/slapi/slapi_utils.c +++ b/servers/slapd/slapi/slapi_utils.c @@ -1551,10 +1551,7 @@ slapi_send_ldap_result( { #ifdef LDAP_SLAPI Operation *op; - struct berval *s; char *extOID = NULL; - struct berval *extValue = NULL; - int rc; SlapReply rs = { REP_RESULT }; slapi_pblock_get( pb, SLAPI_OPERATION, &op ); @@ -4205,7 +4202,6 @@ const char *slapi_entry_get_uniqueid( const Slapi_Entry *e ) { #ifdef LDAP_SLAPI Attribute *attr; - const char *uniqueid; attr = attr_find( e->e_attrs, slap_schema.si_ad_entryUUID ); if ( attr == NULL ) {