[llvm][NFC] Suppress -Wunused-result call to write

Commit 87e6f87fe7e343eb656e9b49d30cbb065c086651 adds a call to `::write()`, which may be annotated w/ `warn_unused_result`, leading to `-Wunused-result` failures.
This commit is contained in:
Jordan Rupprecht 2024-04-11 02:14:07 +00:00
parent 51f1681424
commit 6b46166ef2

View File

@ -265,7 +265,10 @@ void ListeningSocket::shutdown() {
// Ensure ::poll returns if shutdown is called by a seperate thread
char Byte = 'A';
::write(PipeFD[1], &Byte, 1);
ssize_t written = ::write(PipeFD[1], &Byte, 1);
// Ignore any write() error
(void)written;
}
ListeningSocket::~ListeningSocket() {