From 599282300836c1c3860aeeab63c253f41863a95a Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 21 May 2021 16:02:06 -0700 Subject: [PATCH] [NFC][sanitizer] Remove unused variable --- .../lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp index 1f216ffcab94..30cc197bb242 100644 --- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp +++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp @@ -192,7 +192,7 @@ TEST_F(StackPrintTest, SKIP_ON_SPARC(ContainsFullTrace)) { UnwindFast(); char buf[3000]; - uptr len = trace.PrintTo(buf, sizeof(buf)); + trace.PrintTo(buf, sizeof(buf)); EXPECT_THAT(std::string(buf), MatchesRegex("(#[0-9]+ 0x[0-9a-f]+\n){" + std::to_string(trace.size) + "}\n"));