net/SocketDescriptor: add [[nodiscard]]

This commit is contained in:
Max Kellermann
2024-01-11 17:04:44 +01:00
committed by Max Kellermann
parent b63a794fbe
commit 7cd38dde09
2 changed files with 35 additions and 1 deletions

View File

@@ -214,7 +214,7 @@ int
SocketDescriptor::GetIntOption(int level, int name, int fallback) const noexcept
{
int value = fallback;
GetOption(level, name, &value, sizeof(value));
(void)GetOption(level, name, &value, sizeof(value));
return value;
}