mirror of
https://github.com/intel/llvm.git
synced 2026-02-01 00:46:45 +08:00
[lldb-dap] Silence Wunused-result warning (#126580)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user