From: Pierangelo Masarati Date: Sun, 10 Nov 2002 19:57:16 +0000 (+0000) Subject: silence warnings X-Git-Tag: NO_SLAP_OP_BLOCKS~807 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=256f5bbe57c7607f0d224adda2f175bffaed8eaf;p=openldap silence warnings --- diff --git a/libraries/liblber/debug.c b/libraries/liblber/debug.c index 13ab67c30b..cfec0942e4 100644 --- a/libraries/liblber/debug.c +++ b/libraries/liblber/debug.c @@ -30,7 +30,6 @@ struct DEBUGLEVEL }; int ldap_loglevels[LDAP_SUBSYS_NUM]; -static long numLevels = 0; static FILE *log_file = NULL; static int global_level = 0; diff --git a/libraries/libldap/schema.c b/libraries/libldap/schema.c index f109eed564..894b09de4a 100644 --- a/libraries/libldap/schema.c +++ b/libraries/libldap/schema.c @@ -120,12 +120,14 @@ safe_string_free(safe_string * ss) LDAP_FREE(ss); } +#if 0 /* unused */ static char * safe_string_val(safe_string * ss) { ss->val[ss->pos] = '\0'; return(ss->val); } +#endif static char * safe_strdup(safe_string * ss) @@ -2868,7 +2870,6 @@ ldap_str2structurerule( LDAP_CONST char * s, int seen_desc = 0; int seen_obsolete = 0; int seen_nameform = 0; - int seen_ruleids = 0; LDAPStructureRule * sr; char ** ext_vals; const char * savepos; diff --git a/libraries/libldap/tls.c b/libraries/libldap/tls.c index 3af0ac7613..dead3fb5cc 100644 --- a/libraries/libldap/tls.c +++ b/libraries/libldap/tls.c @@ -409,7 +409,6 @@ get_ca_list( char * bundle, char * dir ) } } #endif -done: return ca_list; }