aboutsummaryrefslogtreecommitdiff
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
parentAdded .xmake/ folder to .gitignore file (diff)
downloadzen-e84e54dee2da94683d5def6ad37eccaf1f6a512a.tar.xz
zen-e84e54dee2da94683d5def6ad37eccaf1f6a512a.zip
Marked up unused parameters to squelch warnings
-rw-r--r--zenserver-test/projectclient.cpp2
-rw-r--r--zenserver-test/zenserver-test.cpp5
2 files changed, 6 insertions, 1 deletions
diff --git a/zenserver-test/projectclient.cpp b/zenserver-test/projectclient.cpp
index 8af1a3b73..14d7140ec 100644
--- a/zenserver-test/projectclient.cpp
+++ b/zenserver-test/projectclient.cpp
@@ -23,6 +23,8 @@ struct ProjectClientConnection
void Connect(int BasePort)
{
+ ZEN_UNUSED(BasePort);
+
WideStringBuilder<64> PipeName;
PipeName << "\\\\.\\pipe\\zenprj"; // TODO: this should use an instance-specific identifier!
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);