Fix some unused variable warnings when asserts are disabled

This commit is contained in:
Jonathan G Rennison
2023-11-20 23:59:08 +00:00
parent 0d4d4a9cac
commit 154df0bb7d
4 changed files with 7 additions and 7 deletions

View File

@@ -16,7 +16,7 @@
* @param bytes_to_write The amount of bytes we want to try to write.
* @return True iff the given amount of bytes can be written to the packet.
*/
static bool BufferCanWriteToPacket(const std::vector<byte> &buffer, size_t limit, size_t bytes_to_write)
[[maybe_unused]] static bool BufferCanWriteToPacket(const std::vector<byte> &buffer, size_t limit, size_t bytes_to_write)
{
return buffer.size() + bytes_to_write <= limit;
}