[Lldb-commits] [lldb] [lldb-dap] Silence Wunused-result warning (PR #126580)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 10 11:08:29 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Keith Smiley (keith)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/126580.diff
1 Files Affected:
- (modified) lldb/tools/lldb-dap/OutputRedirector.cpp (+1-1)
``````````diff
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();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/126580
More information about the lldb-commits
mailing list