aboutsummaryrefslogtreecommitdiff
path: root/zenserver-test/zenserver-test.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-05 16:41:03 +0200
committerStefan Boberg <[email protected]>2021-09-05 16:41:03 +0200
commite84e54dee2da94683d5def6ad37eccaf1f6a512a (patch)
tree21b051d30d6828068473815957ef0280e80aabd8 /zenserver-test/zenserver-test.cpp
parentAdded .xmake/ folder to .gitignore file (diff)
downloadzen-e84e54dee2da94683d5def6ad37eccaf1f6a512a.tar.xz
zen-e84e54dee2da94683d5def6ad37eccaf1f6a512a.zip
Marked up unused parameters to squelch warnings
Diffstat (limited to 'zenserver-test/zenserver-test.cpp')
-rw-r--r--zenserver-test/zenserver-test.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/zenserver-test/zenserver-test.cpp b/zenserver-test/zenserver-test.cpp
index 8850e729e..008cae27e 100644
--- a/zenserver-test/zenserver-test.cpp
+++ b/zenserver-test/zenserver-test.cpp
@@ -88,6 +88,8 @@ public:
void Get(const std::string_view Server, int Port, const std::string_view Path)
{
+ ZEN_UNUSED(Port);
+
http_parser_init(&m_HttpParser, HTTP_RESPONSE);
m_HttpParser.data = this;
@@ -150,7 +152,7 @@ private:
return 0;
}
int OnMessageBegin() { return 0; }
- int OnBody(const char* Data, size_t Bytes) { return 0; }
+ int OnBody(const char* Data, size_t Bytes) { ZEN_UNUSED(Data, Bytes); return 0; }
void OnConnected()
{
@@ -158,6 +160,7 @@ private:
asio::async_write(m_Socket,
asio::const_buffer(m_RequestBody.data(), m_RequestBody.size()),
[this](const std::error_code& Error, size_t Bytes) {
+ ZEN_UNUSED(Bytes);
if (Error)
{
return OnError(Error);