diff --git a/contrib/ldns/dnssec_verify.c b/contrib/ldns/dnssec_verify.c index 40f7889c1890..02d136a566d0 100644 --- a/contrib/ldns/dnssec_verify.c +++ b/contrib/ldns/dnssec_verify.c @@ -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, diff --git a/contrib/ldns/dnssec_zone.c b/contrib/ldns/dnssec_zone.c index 64ff9f1badfb..c71038276f1c 100644 --- a/contrib/ldns/dnssec_zone.c +++ b/contrib/ldns/dnssec_zone.c @@ -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, diff --git a/contrib/ldns/parse.c b/contrib/ldns/parse.c index 8559da515733..4a3a4a702621 100644 --- a/contrib/ldns/parse.c +++ b/contrib/ldns/parse.c @@ -340,6 +340,7 @@ tokenread: 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) diff --git a/contrib/ldns/rr.c b/contrib/ldns/rr.c index f68d57db6663..484fa3062430 100644 --- a/contrib/ldns/rr.c +++ b/contrib/ldns/rr.c @@ -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) diff --git a/contrib/ldns/util.c b/contrib/ldns/util.c index fa3a45f2da9b..fc8df863bd74 100644 --- a/contrib/ldns/util.c +++ b/contrib/ldns/util.c @@ -25,6 +25,7 @@ #include #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) diff --git a/contrib/ldns/zone.c b/contrib/ldns/zone.c index b33e198cc4de..6dd4df61d830 100644 --- a/contrib/ldns/zone.c +++ b/contrib/ldns/zone.c @@ -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 @@ memory_error: } return NULL; } +#endif /* * Get the list of glue records in a zone