[libc-commits] [libc] 6ad8c1f - [NFC][libc] Fix unused variable in string_writer_test test
via libc-commits
libc-commits at lists.llvm.org
Thu Aug 25 01:20:06 PDT 2022
Author: Guillaume Chatelet
Date: 2022-08-25T10:19:59+02:00
New Revision: 6ad8c1f076fa3e03d2cb0e911410d5a1ef46e2f8
URL: https://github.com/llvm/llvm-project/commit/6ad8c1f076fa3e03d2cb0e911410d5a1ef46e2f8
DIFF: https://github.com/llvm/llvm-project/commit/6ad8c1f076fa3e03d2cb0e911410d5a1ef46e2f8.diff
LOG: [NFC][libc] Fix unused variable in string_writer_test test
Added:
Modified:
libc/test/src/stdio/printf_core/string_writer_test.cpp
Removed:
################################################################################
diff --git a/libc/test/src/stdio/printf_core/string_writer_test.cpp b/libc/test/src/stdio/printf_core/string_writer_test.cpp
index b7ad69524b54c..17094766faed0 100644
--- a/libc/test/src/stdio/printf_core/string_writer_test.cpp
+++ b/libc/test/src/stdio/printf_core/string_writer_test.cpp
@@ -26,6 +26,7 @@ TEST(LlvmLibcPrintfStringWriterTest, Constructor) {
__llvm_libc::printf_core::StringWriter str_writer(str);
__llvm_libc::printf_core::Writer writer =
get_writer(reinterpret_cast<void *>(&str_writer));
+ (void)writer;
}
TEST(LlvmLibcPrintfStringWriterTest, Write) {
More information about the libc-commits
mailing list