Skip to content

Commit b274f25

Browse files
committed
http_connection, http_reply: Fix unused variable errors
1 parent 36547b4 commit b274f25

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/http_connection.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ void HttpConnection::write_pending()
134134
void HttpConnection::handle_write(const boost::system::error_code &e,
135135
std::vector<ResourcePtr> resources)
136136
{
137+
(void) resources;
137138
boost::mutex::scoped_lock lock(write_mutex_);
138139
write_in_progress_ = false;
139140
if (!e)

src/http_reply.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ static bool serveFromFile(HttpReply::status_type status, const std::string& file
279279
}
280280
bool FileHttpRequestHandler::operator()(const HttpRequest &request, boost::shared_ptr<HttpConnection> connection, const char* begin, const char* end)
281281
{
282+
(void) request;
283+
(void) begin;
284+
(void) end;
282285
return serveFromFile(status_, filename_, headers_, connection);
283286
}
284287

@@ -383,6 +386,9 @@ StaticHttpRequestHandler::StaticHttpRequestHandler(HttpReply::status_type status
383386

384387
bool StaticHttpRequestHandler::operator()(const HttpRequest &request, boost::shared_ptr<HttpConnection> connection, const char* begin, const char* end)
385388
{
389+
(void) request;
390+
(void) begin;
391+
(void) end;
386392
reply_builder_.write(connection);
387393
connection->write(content_string_);
388394
return true;

0 commit comments

Comments
 (0)