1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

#if out unused functions which trip up gcc but not clang.

This commit is contained in:
Dag-Erling Smørgrav 2013-02-16 22:16:14 +00:00
parent cb35030ab3
commit c81beee50e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246883
6 changed files with 18 additions and 3 deletions

View File

@ -628,6 +628,7 @@ ldns_dnssec_trust_tree_print_sm_fmt(FILE *out,
}
}
#if 0
static void
ldns_dnssec_trust_tree_print_sm(FILE *out,
ldns_dnssec_trust_tree *tree,
@ -639,6 +640,7 @@ ldns_dnssec_trust_tree_print_sm(FILE *out,
ldns_dnssec_trust_tree_print_sm_fmt(out, ldns_output_format_default,
tree, tabs, extended, sibmap, treedepth);
}
#endif
void
ldns_dnssec_trust_tree_print_fmt(FILE *out, const ldns_output_format *fmt,

View File

@ -298,6 +298,7 @@ ldns_dnssec_rrsets_print_soa_fmt(FILE *out, const ldns_output_format *fmt,
}
}
#if 0
static void
ldns_dnssec_rrsets_print_soa(FILE *out,
ldns_dnssec_rrsets *rrsets,
@ -307,7 +308,7 @@ ldns_dnssec_rrsets_print_soa(FILE *out,
ldns_dnssec_rrsets_print_soa_fmt(out, ldns_output_format_default,
rrsets, follow, show_soa);
}
#endif
void
ldns_dnssec_rrsets_print_fmt(FILE *out, const ldns_output_format *fmt,
@ -428,6 +429,7 @@ ldns_dnssec_name_set_name(ldns_dnssec_name *rrset,
}
}
#if 0
static ldns_rr *
ldns_dnssec_name_nsec(ldns_dnssec_name *rrset)
{
@ -436,6 +438,7 @@ ldns_dnssec_name_nsec(ldns_dnssec_name *rrset)
}
return NULL;
}
#endif
void
ldns_dnssec_name_set_nsec(ldns_dnssec_name *rrset, ldns_rr *nsec)
@ -589,12 +592,14 @@ ldns_dnssec_name_print_soa_fmt(FILE *out, const ldns_output_format *fmt,
}
}
#if 0
static void
ldns_dnssec_name_print_soa(FILE *out, ldns_dnssec_name *name, bool show_soa)
{
ldns_dnssec_name_print_soa_fmt(out, ldns_output_format_default,
name, show_soa);
}
#endif
void
ldns_dnssec_name_print_fmt(FILE *out, const ldns_output_format *fmt,

View File

@ -340,6 +340,7 @@ ldns_bget_token(ldns_buffer *b, char *token, const char *delim, size_t limit)
return (ssize_t)i;
}
#if 0
static void
ldns_bskipc(ldns_buffer *buffer, char c)
{
@ -352,6 +353,7 @@ ldns_bskipc(ldns_buffer *buffer, char c)
}
}
}
#endif
void
ldns_bskipcs(ldns_buffer *buffer, const char *s)
@ -376,11 +378,12 @@ ldns_bskipcs(ldns_buffer *buffer, const char *s)
}
}
#if 0
static void
ldns_fskipc(ATTR_UNUSED(FILE *fp), ATTR_UNUSED(char c))
{
}
#endif
void
ldns_fskipcs(FILE *fp, const char *s)

View File

@ -1394,7 +1394,7 @@ ldns_rr_list_clone(const ldns_rr_list *rrlist)
return new_list;
}
#if 0
static int
qsort_rr_compare(const void *a, const void *b)
{
@ -1412,6 +1412,7 @@ qsort_rr_compare(const void *a, const void *b)
}
return ldns_rr_compare(rr1, rr2);
}
#endif
static int
qsort_schwartz_rr_compare(const void *a, const void *b)

View File

@ -25,6 +25,7 @@
#include <openssl/rand.h>
#endif
#if 0
/* put this here tmp. for debugging */
static void
xprintf_rdf(ldns_rdf *rd)
@ -62,6 +63,7 @@ xprintf_hex(uint8_t *data, size_t len)
}
printf("\n");
}
#endif
ldns_lookup_table *
ldns_lookup_by_name(ldns_lookup_table *table, const char *name)

View File

@ -56,6 +56,7 @@ ldns_zone_push_rr(ldns_zone *z, ldns_rr *rr)
return ldns_rr_list_push_rr( ldns_zone_rrs(z), rr);
}
#if 0
/* return a clone of the given rr list, without the glue records
* rr list should be the complete zone
* if present, stripped records are added to the list *glue_records
@ -153,6 +154,7 @@ ldns_zone_strip_glue_rrs(const ldns_rdf *zone_name, const ldns_rr_list *rrs, ldn
}
return NULL;
}
#endif
/*
* Get the list of glue records in a zone