]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #1253: unused variable in edns-subnet/addrtree.c:getbit().
authorRalph Dolmans <ralph@nlnetlabs.nl>
Tue, 18 Apr 2017 13:25:09 +0000 (13:25 +0000)
committerRalph Dolmans <ralph@nlnetlabs.nl>
Tue, 18 Apr 2017 13:25:09 +0000 (13:25 +0000)
git-svn-id: file:///svn/unbound/trunk@4126 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
edns-subnet/addrtree.c

index 581872f3d22d94a9c3246c2cceef13d028d63675..af714a67223544b283857afc05c6d96969908b99 100644 (file)
@@ -1,5 +1,6 @@
 18 April 2017: Ralph
        - Fix #1252: more indentation inconsistencies.
+       - Fix #1253: unused variable in edns-subnet/addrtree.c:getbit().
 
 13 April 2017: Ralph
        - Added ECS unit test (from Manu Bretelle).
index 69ace60549bf135cc97ae10f63dbb70781d87227..050eb31fc98f5d1e4573ed6a6942db2b6ee32623 100644 (file)
@@ -302,6 +302,7 @@ static int
 getbit(const addrkey_t *addr, addrlen_t addrlen, addrlen_t n)
 {
        log_assert(addrlen > n);
+       (void)addrlen;
        return (int)(addr[n/KEYWIDTH]>>((KEYWIDTH-1)-(n%KEYWIDTH))) & 1;
 }