- 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
This commit is contained in:
Wouter Wijngaards 2016-07-22 07:05:52 +00:00
parent 6b7e0676b9
commit 42f14e7c4d
4 changed files with 5 additions and 0 deletions

View file

@ -1,6 +1,8 @@
22 July 2016: Wouter 22 July 2016: Wouter
- Fix #801: missing error condition handling in - Fix #801: missing error condition handling in
daemon_create_workers(). daemon_create_workers().
- Fix #802: workaround for function parameters that are "unused"
without log_assert.
20 July 2016: Wouter 20 July 2016: Wouter
- Fix typo in unbound.conf. - Fix typo in unbound.conf.

View file

@ -1416,6 +1416,7 @@ serviced_perturb_qname(struct ub_randstate* rnd, uint8_t* qbuf, size_t len)
long int random = 0; long int random = 0;
int bits = 0; int bits = 0;
log_assert(len >= 10 + 5 /* offset qname, root, qtype, qclass */); log_assert(len >= 10 + 5 /* offset qname, root, qtype, qclass */);
(void)len;
lablen = *d++; lablen = *d++;
while(lablen) { while(lablen) {
while(lablen--) { while(lablen--) {

View file

@ -1438,6 +1438,7 @@ cfg_set_bit(uint8_t* bitlist, size_t len, int id)
{ {
int pos = id/8; int pos = id/8;
log_assert((size_t)pos < len); log_assert((size_t)pos < len);
(void)len;
bitlist[pos] |= 1<<(id%8); bitlist[pos] |= 1<<(id%8);
} }

View file

@ -870,6 +870,7 @@ comm_point_tcp_accept_callback(int fd, short event, void* arg)
/* accept incoming connection. */ /* accept incoming connection. */
c_hdl = c->tcp_free; c_hdl = c->tcp_free;
log_assert(fd != -1); log_assert(fd != -1);
(void)fd;
new_fd = comm_point_perform_accept(c, &c_hdl->repinfo.addr, new_fd = comm_point_perform_accept(c, &c_hdl->repinfo.addr,
&c_hdl->repinfo.addrlen); &c_hdl->repinfo.addrlen);
if(new_fd == -1) if(new_fd == -1)