[Lldb-commits] [lldb] [LLDB] Silence warnings when building on Windows (PR #191566)

Martin Storsjö via lldb-commits lldb-commits at lists.llvm.org
Sat Apr 11 04:22:01 PDT 2026


================
@@ -36,6 +36,7 @@ std::string lldb_private::CreateFile(llvm::StringRef filename,
   int fd;
   std::error_code ret = llvm::sys::fs::openFileForWrite(path, fd);
   assert(!ret && "Failed to create test file.");
+  (void)ret;
----------------
mstorsjo wrote:

Don't we prefer `[[maybe_unused]]` these days? (Although I don't mind the void cast either.)

https://github.com/llvm/llvm-project/pull/191566


More information about the lldb-commits mailing list