aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/memwipe.cpp
diff options
context:
space:
mode:
authorOnur Altun <33907436+bsgri@users.noreply.github.com>2018-01-08 06:58:48 +0300
committerGitHub <noreply@github.com>2018-01-08 06:58:48 +0300
commit8b50209ca094611c7ff53d1658e62f2eae51269b (patch)
tree18b232d588043b2e69c76f893a1ab153e07191d2 /tests/unit_tests/memwipe.cpp
parentMerge pull request #3019 (diff)
downloadmonero-8b50209ca094611c7ff53d1658e62f2eae51269b.tar.xz
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));
Diffstat (limited to '')
-rw-r--r--tests/unit_tests/memwipe.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/memwipe.cpp b/tests/unit_tests/memwipe.cpp
index 2d8980ef7..ad30ccfd5 100644
--- a/tests/unit_tests/memwipe.cpp
+++ b/tests/unit_tests/memwipe.cpp
@@ -47,7 +47,7 @@ static void test(bool wipe)
if ((intptr_t)quux == foop)
{
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");
free(quux);