From: Andrei Pavel Date: Mon, 4 Mar 2024 13:26:17 +0000 (+0200) Subject: [#3210] fix some warnings X-Git-Tag: Kea-2.5.7~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7128d2054f35cc89306fd0bcb83ecc80f292198e;p=thirdparty%2Fkea.git [#3210] fix some warnings --- diff --git a/src/lib/util/io.h b/src/lib/util/io.h index 975299ceed..ce64422060 100644 --- a/src/lib/util/io.h +++ b/src/lib/util/io.h @@ -32,7 +32,7 @@ readUint(void const* const buffer, size_t const length) { << (length == 1 ? "" : "s") << " instead"); } - uint8_t const* const byte_buffer(static_cast(buffer)); + uint8_t const* const byte_buffer(static_cast(buffer)); uint_t result; uint8_t* pointer_to_result(static_cast(static_cast(&result))); @@ -60,9 +60,8 @@ writeUint(uint_t const value, void* const buffer, size_t const length) { << (length == 1 ? "" : "s") << " instead"); } - uint8_t const* const pointer_to_value( - static_cast(static_cast(&value))); - uint8_t* const byte_buffer(static_cast(buffer)); + uint8_t const* pointer_to_value(static_cast(static_cast(&value))); + uint8_t* byte_buffer(static_cast(buffer)); std::reverse_copy(pointer_to_value, pointer_to_value + size, byte_buffer);