]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #802: workaround for function parameters that are "unused"
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 22 Jul 2016 07:05:52 +0000 (07:05 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 22 Jul 2016 07:05:52 +0000 (07:05 +0000)
  without log_assert.

git-svn-id: file:///svn/unbound/trunk@3823 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/outside_network.c
util/config_file.c
util/netevent.c

index 1f20896a77b238a612432da6265fe4380c4e4242..e118fc67c48c65d0f6ca1b4e50896dd90c7675fc 100644 (file)
@@ -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.
index a19417822f72e5b214cca6bfdbd8c4c636e50675..dd25ab39ba70a475b16f8e295e40504ce1eb3603 100644 (file)
@@ -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--) {
index 4754e2d51dff894834134b6b7b9b61222af4e8bd..b13a49c7b1573160917f3c25b532fc468a02e1cc 100644 (file)
@@ -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);
 }
 
index c6a99cd7459ed4bad6a520871d47662b924b73a8..60ef918f04ec78440350f39288b5bd95bef361f9 100644 (file)
@@ -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)