Silence "unused variable" warnings

This commit is contained in:
Hallvard Furuseth 2005-07-14 19:18:55 +00:00
parent 3d8aceab81
commit d449c9d08b
4 changed files with 6 additions and 9 deletions

View File

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

View File

@ -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;

View File

@ -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;

View File

@ -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 ) {