Commit e57a0119 authored by Francis Dupont's avatar Francis Dupont
Browse files

[master] Avoid unused warnings

parent be5a6dd4
......@@ -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)));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment