diff options
| author | Onur Altun <33907436+bsgri@users.noreply.github.com> | 2018-01-08 06:58:48 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-08 06:58:48 +0300 |
| commit | 8b50209ca094611c7ff53d1658e62f2eae51269b (patch) | |
| tree | 18b232d588043b2e69c76f893a1ab153e07191d2 | |
| parent | a529f0a6c9a74a4a05205c75d5b3f726e8e58ea0 (diff) | |
| download | monzero-core-8b50209ca094611c7ff53d1658e62f2eae51269b.tar.gz monzero-core-8b50209ca094611c7ff53d1658e62f2eae51269b.tar.xz monzero-core-8b50209ca094611c7ff53d1658e62f2eae51269b.zip | |
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));
| -rw-r--r-- | tests/unit_tests/memwipe.cpp | 2 |
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); |
