diff options
Diffstat (limited to 'dnstap/dnstap.c')
-rw-r--r-- | dnstap/dnstap.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/dnstap/dnstap.c b/dnstap/dnstap.c index 6df2fef3f312..5d0420f6fbba 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); |