Fix unused variable warnings

This commit is contained in:
Vinnie Falco
2017-07-20 08:15:28 -07:00
parent 58c976ea73
commit 8f4e7fd0a0
25 changed files with 54 additions and 51 deletions
+2
View File
@@ -346,6 +346,8 @@ void
file_body::writer::
init(boost::optional<std::uint64_t> const& content_length, beast::error_code& ec)
{
boost::ignore_unused(content_length);
// Attempt to open the file for writing
file_ = fopen(path_.string().c_str(), "wb");
@@ -111,6 +111,8 @@ public:
beast::http::request<Body, Fields>&& req,
Send const& send) const
{
boost::ignore_unused(ep);
// Determine our action based on the method
switch(req.method())
{
@@ -219,6 +221,7 @@ private:
beast::http::request<Body, Fields> const& req,
boost::filesystem::path const& rel_path) const
{
boost::ignore_unused(rel_path);
beast::http::response<beast::http::string_body> res;
res.version = req.version;
res.result(beast::http::status::not_found);
+1 -1
View File
@@ -119,7 +119,7 @@ ssl_certificate::construct()
"-----END DH PARAMETERS-----\n";
ctx_.set_password_callback(
[](std::size_t size,
[](std::size_t,
boost::asio::ssl::context_base::password_purpose)
{
return "test";
+1
View File
@@ -57,6 +57,7 @@ class write_msg_op
: stream(stream_)
, msg(std::move(msg_))
{
boost::ignore_unused(handler);
}
};