diff --git a/dnstap/dnstap.c b/dnstap/dnstap.c index 6df2fef3f..5d0420f6f 100644 --- a/dnstap/dnstap.c +++ b/dnstap/dnstap.c @@ -121,7 +121,9 @@ dt_msg_init(const struct dt_env *env, struct dt_env * dt_create(const char *socket_path, unsigned num_workers) { +#ifdef UNBOUND_DEBUG fstrm_res res; +#endif struct dt_env *env; struct fstrm_iothr_options *fopt; struct fstrm_unix_writer_options *fuwopt; @@ -138,7 +140,12 @@ dt_create(const char *socket_path, unsigned num_workers) return NULL; fwopt = fstrm_writer_options_init(); - res = fstrm_writer_options_add_content_type(fwopt, +#ifdef UNBOUND_DEBUG + res = +#else + (void) +#endif + fstrm_writer_options_add_content_type(fwopt, DNSTAP_CONTENT_TYPE, sizeof(DNSTAP_CONTENT_TYPE) - 1); log_assert(res == fstrm_res_success); diff --git a/doc/Changelog b/doc/Changelog index 1e030882c..f8fe42b3e 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,7 @@ 10 February 2017: Wouter - Fix pythonmod for typedef changes. + - Fix dnstap for warning of set but not used. + - tag 1.6.1rc2. 9 February 2017: Wouter - tag 1.6.1rc1.