From 64546fcfb41a3de3322945baad5a3b115afbdc7b Mon Sep 17 00:00:00 2001 From: George Thessalonikefs Date: Tue, 8 Jun 2021 22:15:17 +0200 Subject: [PATCH] - Fix unused variable warning when compiling with --enable-dnstap. --- dnstap/dnstap.c | 18 +++++++++--------- doc/Changelog | 3 +++ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/dnstap/dnstap.c b/dnstap/dnstap.c index 6577a019a..5c0cde1d5 100644 --- a/dnstap/dnstap.c +++ b/dnstap/dnstap.c @@ -507,19 +507,19 @@ dt_msg_send_outside_query(struct dt_env *env, void dt_msg_send_outside_response(struct dt_env *env, - struct sockaddr_storage *rsock, - struct sockaddr_storage *qsock, - enum comm_point_type cptype, - uint8_t *zone, size_t zone_len, - uint8_t *qbuf, size_t qbuf_len, - const struct timeval *qtime, - const struct timeval *rtime, - sldns_buffer *rmsg) + struct sockaddr_storage *rsock, + struct sockaddr_storage *qsock, + enum comm_point_type cptype, + uint8_t *zone, size_t zone_len, + uint8_t *qbuf, size_t qbuf_len, + const struct timeval *qtime, + const struct timeval *rtime, + sldns_buffer *rmsg) { struct dt_msg dm; uint16_t qflags; - log_assert(qbuf_len >= sizeof(qflags)); + (void)qbuf_len; log_assert(qbuf_len >= sizeof(qflags)); memcpy(&qflags, qbuf, sizeof(qflags)); qflags = ntohs(qflags); diff --git a/doc/Changelog b/doc/Changelog index ab75add77..401074b8a 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +8 June 2021: George + - Fix unused variable warning when compiling with --enable-dnstap. + 7 June 2021: George - Merge #448 from shoeper: Update unbound-control.8.in, fix rpz_disable typo. -- 2.47.2