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

Alexandre Ganea via lldb-commits lldb-commits at lists.llvm.org
Sat Apr 11 06:45:40 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;
----------------
aganea wrote:

hmm, `[[maybe_unused]]` does not supporess `-Wunused-value`. I put back the void cast.

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


More information about the lldb-commits mailing list