From 42f14e7c4d51f4c55b92a0426b9dfd05ffc6db49 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Fri, 22 Jul 2016 07:05:52 +0000 Subject: [PATCH] - Fix #802: workaround for function parameters that are "unused" without log_assert. git-svn-id: file:///svn/unbound/trunk@3823 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 2 ++ services/outside_network.c | 1 + util/config_file.c | 1 + util/netevent.c | 1 + 4 files changed, 5 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index 1f20896a7..e118fc67c 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,6 +1,8 @@ 22 July 2016: Wouter - Fix #801: missing error condition handling in daemon_create_workers(). + - Fix #802: workaround for function parameters that are "unused" + without log_assert. 20 July 2016: Wouter - Fix typo in unbound.conf. diff --git a/services/outside_network.c b/services/outside_network.c index a19417822..dd25ab39b 100644 --- a/services/outside_network.c +++ b/services/outside_network.c @@ -1416,6 +1416,7 @@ serviced_perturb_qname(struct ub_randstate* rnd, uint8_t* qbuf, size_t len) long int random = 0; int bits = 0; log_assert(len >= 10 + 5 /* offset qname, root, qtype, qclass */); + (void)len; lablen = *d++; while(lablen) { while(lablen--) { diff --git a/util/config_file.c b/util/config_file.c index 4754e2d51..b13a49c7b 100644 --- a/util/config_file.c +++ b/util/config_file.c @@ -1438,6 +1438,7 @@ cfg_set_bit(uint8_t* bitlist, size_t len, int id) { int pos = id/8; log_assert((size_t)pos < len); + (void)len; bitlist[pos] |= 1<<(id%8); } diff --git a/util/netevent.c b/util/netevent.c index c6a99cd74..60ef918f0 100644 --- a/util/netevent.c +++ b/util/netevent.c @@ -870,6 +870,7 @@ comm_point_tcp_accept_callback(int fd, short event, void* arg) /* accept incoming connection. */ c_hdl = c->tcp_free; log_assert(fd != -1); + (void)fd; new_fd = comm_point_perform_accept(c, &c_hdl->repinfo.addr, &c_hdl->repinfo.addrlen); if(new_fd == -1) -- 2.47.3