aboutsummaryrefslogtreecommitdiff
path: root/src/util/sock.cpp
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2021-04-08 16:37:54 +0200
committerVasil Dimov <vd@FreeBSD.org>2021-04-13 17:26:20 +0200
commite286cd0d7b4e12c8efe5e7ac3066a100e0ba2c0a (patch)
tree4569f2cdb11d296506a15533e1bebc10fd143b77 /src/util/sock.cpp
parenta1f0b8b62eb851c837a3618583b7c2fd4d12006c (diff)
net: flag relevant Sock methods with [[nodiscard]]
Diffstat (limited to 'src/util/sock.cpp')
-rw-r--r--src/util/sock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/sock.cpp b/src/util/sock.cpp
index 0bc9795db3..b6c2a47434 100644
--- a/src/util/sock.cpp
+++ b/src/util/sock.cpp
@@ -179,7 +179,7 @@ void Sock::SendComplete(const std::string& data,
// Wait for a short while (or the socket to become ready for sending) before retrying
// if nothing was sent.
const auto wait_time = std::min(deadline - now, std::chrono::milliseconds{MAX_WAIT_FOR_IO});
- Wait(wait_time, SEND);
+ (void)Wait(wait_time, SEND);
}
}
@@ -262,7 +262,7 @@ std::string Sock::RecvUntilTerminator(uint8_t terminator,
// Wait for a short while (or the socket to become ready for reading) before retrying.
const auto wait_time = std::min(deadline - now, std::chrono::milliseconds{MAX_WAIT_FOR_IO});
- Wait(wait_time, RECV);
+ (void)Wait(wait_time, RECV);
}
}