[lldb-dap] Silence Wunused-result warning (#126580)

This commit is contained in:
Keith Smiley
2025-02-10 15:20:34 -08:00
committed by GitHub
parent f451d27b38
commit 1932ed040c

View File

@@ -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();
}