Skip to content

Commit 6e38824

Browse files
committed
[lldb] Silence GCC/glibc warnings about ignoring the return value of write(). NFC.
This matches how another similar warning is silenced in Host/posix/ProcessLauncherPosixFork.cpp. Differential Revision: https://reviews.llvm.org/D123205
1 parent ae2aa2d commit 6e38824

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/source/Core/Debugger.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,8 @@ Status Debugger::SetInputString(const char *data) {
893893
return result;
894894
}
895895

896-
write(fds[WRITE], data, size);
896+
int r = write(fds[WRITE], data, size);
897+
(void)r;
897898
// Close the write end of the pipe, so that the command interpreter will exit
898899
// when it consumes all the data.
899900
llvm::sys::Process::SafelyCloseFileDescriptor(fds[WRITE]);

0 commit comments

Comments
 (0)