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 b7ad69524b54..17094766faed 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(&str_writer)); + (void)writer; } TEST(LlvmLibcPrintfStringWriterTest, Write) {