mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 00:37:43 +00:00
fix for warning
monero/tests/unit_tests/memwipe.cpp:50:8: Warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] if (wipe) ASSERT_TRUE(memcmp(quux, "bar", 3));
This commit is contained in:
parent
a529f0a6c9
commit
8b50209ca0
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ static void test(bool wipe)
|
||||||
if ((intptr_t)quux == foop)
|
if ((intptr_t)quux == foop)
|
||||||
{
|
{
|
||||||
MDEBUG(std::hex << std::setw(8) << std::setfill('0') << *(uint32_t*)quux);
|
MDEBUG(std::hex << std::setw(8) << std::setfill('0') << *(uint32_t*)quux);
|
||||||
if (wipe) ASSERT_TRUE(memcmp(quux, "bar", 3));
|
if (wipe) { ASSERT_TRUE(memcmp(quux, "bar", 3)); }
|
||||||
}
|
}
|
||||||
else MWARNING("We did not get the same location, cannot check");
|
else MWARNING("We did not get the same location, cannot check");
|
||||||
free(quux);
|
free(quux);
|
||||||
|
|
Loading…
Reference in a new issue