2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[#2441] fixed compilation warnings

This commit is contained in:
Razvan Becheriu
2022-08-29 10:23:38 +03:00
parent 6ab5f51661
commit fa07ea016a

View File

@@ -42,7 +42,7 @@ TEST(asioutil, readUint16) {
}
TEST(asioutil, readUint16OutOfRange) {
uint8_t data;
uint8_t data = 0;
EXPECT_THROW(readUint16(&data, sizeof(data)), isc::OutOfRange);
}
@@ -87,7 +87,7 @@ const static uint32_t test32[] = {
};
TEST(asioutil, readUint32) {
uint8_t data[8];
uint8_t data[8] = {0, 0, 0, 0, 0, 0, 0, 0};
// make sure that we can read data, regardless of
// the memory alignment. That' why we need to repeat
@@ -103,7 +103,7 @@ TEST(asioutil, readUint32) {
}
TEST(asioutil, readUint32OutOfRange) {
uint8_t data[3];
uint8_t data[3] = {0, 0, 0};
EXPECT_THROW(readUint32(data, sizeof(data)), isc::OutOfRange);
}