forked from boostorg/beast
Fix unused variable warnings
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -57,6 +57,7 @@ class write_msg_op
|
||||
: stream(stream_)
|
||||
, msg(std::move(msg_))
|
||||
{
|
||||
boost::ignore_unused(handler);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user