[Lldb-commits] [lldb] 1932ed0 - [lldb-dap] Silence Wunused-result warning (#126580)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 10 15:20:38 PST 2025
Author: Keith Smiley
Date: 2025-02-10T15:20:34-08:00
New Revision: 1932ed040cc95ddfdeda3074bb57144cd2897d56
URL: https://github.com/llvm/llvm-project/commit/1932ed040cc95ddfdeda3074bb57144cd2897d56
DIFF: https://github.com/llvm/llvm-project/commit/1932ed040cc95ddfdeda3074bb57144cd2897d56.diff
LOG: [lldb-dap] Silence Wunused-result warning (#126580)
Added:
Modified:
lldb/tools/lldb-dap/OutputRedirector.cpp
Removed:
################################################################################
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();
}
More information about the lldb-commits
mailing list