]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
dump_histo is only used with extended stats
authorMark Andrews <marka@isc.org>
Wed, 12 Apr 2023 06:00:39 +0000 (16:00 +1000)
committerMark Andrews <marka@isc.org>
Wed, 12 Apr 2023 22:53:27 +0000 (08:53 +1000)
Wrap dump_histo with #if defined(EXTENDED_STATS)/#endif.  Reproduce
build failure with "configure --without-libxml2 --without-json-c"

bin/named/statschannel.c

index 0b9eb6b862a3e255b0210518891d73a64a1e6243..ce324f991d10df6964c3a3564c0c3490277fe272 100644 (file)
@@ -848,6 +848,7 @@ dump_stats(isc_stats_t *stats, isc_statsformat_t type, void *arg,
                              values, options));
 }
 
+#if defined(EXTENDED_STATS)
 static isc_result_t
 dump_histo(isc_histomulti_t *hm, isc_statsformat_t type, void *arg,
           const char *category, const char **desc, int ncounters, int *indices,
@@ -863,6 +864,7 @@ dump_histo(isc_histomulti_t *hm, isc_statsformat_t type, void *arg,
        return (dump_counters(type, arg, category, desc, ncounters, indices,
                              values, options));
 }
+#endif /* defined(EXTENDED_STATS) */
 
 static isc_result_t
 dump_counters(isc_statsformat_t type, void *arg, const char *category,