https://github.com/keith created 
https://github.com/llvm/llvm-project/pull/126580

None

>From bb41fdf6021c7a62bf77096bc4ce31e8e9311577 Mon Sep 17 00:00:00 2001
From: Keith Smiley <keithbsmi...@gmail.com>
Date: Mon, 10 Feb 2025 19:00:31 +0000
Subject: [PATCH] [lldb-dap] Silence Wunused-result warning

---
 lldb/tools/lldb-dap/OutputRedirector.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lldb/tools/lldb-dap/OutputRedirector.cpp 
b/lldb/tools/lldb-dap/OutputRedirector.cpp
index 7935e17a653bec3..a23572ab7ae0425 100644
--- a/lldb/tools/lldb-dap/OutputRedirector.cpp
+++ b/lldb/tools/lldb-dap/OutputRedirector.cpp
@@ -86,7 +86,7 @@ void OutputRedirector::Stop() {
     // write descriptor is duplicated (to stdout/err or to another process).
     // Write a null byte to ensure the read call returns.
     char buf[] = "\0";
-    ::write(fd, buf, sizeof(buf));
+    (void)::write(fd, buf, sizeof(buf));
     ::close(fd);
     m_forwarder.join();
   }

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to