summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomek Mrugalski <tomek@isc.org>2020-09-18 10:52:20 +0200
committerTomek Mrugalski <tomek@isc.org>2020-10-02 12:19:09 +0200
commit66fcb41fbaf73e9be6b61f71f08ad84cc181e8a1 (patch)
treef5a2ccb9f75005233318f9af8bf9d61b94df0c27
parent[#1440] wrapped ChangeLog to 73 characters (diff)
downloadkea-66fcb41fbaf73e9be6b61f71f08ad84cc181e8a1.tar.xz
kea-66fcb41fbaf73e9be6b61f71f08ad84cc181e8a1.zip
[#1422] Compilation warning removed.
-rw-r--r--src/lib/asiolink/addr_utilities.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/asiolink/addr_utilities.cc b/src/lib/asiolink/addr_utilities.cc
index b31e3ea8d2..5c308d8625 100644
--- a/src/lib/asiolink/addr_utilities.cc
+++ b/src/lib/asiolink/addr_utilities.cc
@@ -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;