io/FileDescriptor: add [[nodiscard]]

This commit is contained in:
Max Kellermann
2024-01-11 16:59:44 +01:00
committed by Max Kellermann
parent 3e862b85d4
commit b63a794fbe
4 changed files with 31 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ EventPipe::Write() noexcept
assert(w.IsDefined());
static constexpr std::byte buffer[1]{};
w.Write(buffer);
(void)w.Write(buffer);
}
#ifdef _WIN32