aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-06-01 22:08:40 -0500
committerluigi1111 <luigi1111w@gmail.com>2021-06-01 22:08:40 -0500
commitfcb347820dc640675c9ef43fd1afbaf35d827d2d (patch)
tree1455e6553dcea3bdc16c3e1f9a0d17542a8c339e /tests
parentMerge pull request #7712 (diff)
parentWarnings: unused var in core_tests:chaingen.h (diff)
downloadmonero-fcb347820dc640675c9ef43fd1afbaf35d827d2d.tar.xz
Merge pull request #7713
b40129e Warnings: unused var in core_tests:chaingen.h (mj-xmr)
Diffstat (limited to 'tests')
-rw-r--r--tests/core_tests/chaingen.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/core_tests/chaingen.h b/tests/core_tests/chaingen.h
index a5fd35028..dbb8bd3be 100644
--- a/tests/core_tests/chaingen.h
+++ b/tests/core_tests/chaingen.h
@@ -1084,7 +1084,7 @@ inline bool do_replay_file(const std::string& filename)
}
#define QUOTEME(x) #x
-#define DEFINE_TESTS_ERROR_CONTEXT(text) const char* perr_context = text;
+#define DEFINE_TESTS_ERROR_CONTEXT(text) const char* perr_context = text; (void) perr_context;
#define CHECK_TEST_CONDITION(cond) CHECK_AND_ASSERT_MES(cond, false, "[" << perr_context << "] failed: \"" << QUOTEME(cond) << "\"")
#define CHECK_EQ(v1, v2) CHECK_AND_ASSERT_MES(v1 == v2, false, "[" << perr_context << "] failed: \"" << QUOTEME(v1) << " == " << QUOTEME(v2) << "\", " << v1 << " != " << v2)
#define CHECK_NOT_EQ(v1, v2) CHECK_AND_ASSERT_MES(!(v1 == v2), false, "[" << perr_context << "] failed: \"" << QUOTEME(v1) << " != " << QUOTEME(v2) << "\", " << v1 << " == " << v2)