]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1422] Compilation warning removed.
authorTomek Mrugalski <tomek@isc.org>
Fri, 18 Sep 2020 08:52:20 +0000 (10:52 +0200)
committerTomek Mrugalski <tomek@isc.org>
Fri, 2 Oct 2020 10:19:09 +0000 (10:19 +0000)
src/lib/asiolink/addr_utilities.cc

index b31e3ea8d2b9d6f59b73d7709780790372653497..5c308d862583d82c2601d166ab209468f29e6080 100644 (file)
@@ -393,7 +393,6 @@ IOAddress offsetAddress(const IOAddress& addr, uint64_t offset) {
     // This is IPv6 address. Let's first convert the offset value to network
     // byte order and store within the vector.
     std::vector<uint8_t> offset_bytes(8);
-    int offset_idx = 0;
     for (int offset_idx = offset_bytes.size() - 1; offset_idx >= 0; --offset_idx) {
         offset_bytes[offset_idx] = static_cast<uint8_t>(offset & 0x00000000000000ff);
         offset = offset >> 8;