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

[master] Avoid unused warnings

This commit is contained in:
Francis Dupont
2018-08-17 21:36:00 +02:00
parent be5a6dd431
commit e57a011986

View File

@@ -340,6 +340,7 @@ TEST_F(BufferTest, writeUint64) {
obuffer.writeUint64(val1);
ASSERT_EQ(sizeof(uint64_t), obuffer.getLength());
cp = static_cast<const uint8_t*>(obuffer.getData());
EXPECT_TRUE(cp);
EXPECT_FALSE(memcmp(exp_val1, obuffer.getData(), sizeof(uint64_t)));
EXPECT_NO_THROW(obuffer.clear());
@@ -347,6 +348,7 @@ TEST_F(BufferTest, writeUint64) {
obuffer.writeUint64(val2);
ASSERT_EQ(sizeof(uint64_t), obuffer.getLength());
cp = static_cast<const uint8_t*>(obuffer.getData());
EXPECT_TRUE(cp);
EXPECT_FALSE(memcmp(exp_val2, obuffer.getData(), sizeof(uint64_t)));
}