diff options
author | Vikram Bodireddy <vikram.bodireddy@linux.intel.com> | 2020-08-26 12:24:51 +0300 |
---|---|---|
committer | Vikram Bodireddy <vikram.bodireddy@linux.intel.com> | 2020-08-26 12:24:51 +0300 |
commit | f5b16f030f1fd67412c7d279e79b58ffc5e36f67 (patch) | |
tree | 12aec00b4728dac71d3eacddc872a74164e1263b | |
parent | 3fcb12d03cd99b6e0ea5a1a332676af440930bfa (diff) | |
download | bmcweb-f5b16f030f1fd67412c7d279e79b58ffc5e36f67.tar.xz |
Fix unused param errors
Unused param errors are throwing from this sources by the recent
CMake changes. Looks like CI build didn't catch these errors then.
Tested: Build is verified.
Signed-off-by: Vikram Bodireddy <vikram.bodireddy@linux.intel.com>
Change-Id: I139c01a78babc1c370c0c5de787291726ea42b53
-rw-r--r-- | include/nbd_proxy.hpp | 4 | ||||
-rw-r--r-- | redfish-core/lib/virtual_media.hpp | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/include/nbd_proxy.hpp b/include/nbd_proxy.hpp index 462e4a7503..ee0d9cd557 100644 --- a/include/nbd_proxy.hpp +++ b/include/nbd_proxy.hpp @@ -89,7 +89,7 @@ struct NbdProxyServer : std::enable_shared_from_this<NbdProxyServer> auto mountHandler = [this, self(shared_from_this())]( const boost::system::error_code ec, - const bool status) { + const bool) { if (ec) { BMCWEB_LOG_ERROR << "DBus error: cannot call mount method = " @@ -433,7 +433,7 @@ void requestRoutes(App& app) session->second->close(); }) .onmessage([](crow::websocket::Connection& conn, - const std::string& data, bool isBinary) { + const std::string& data, bool) { BMCWEB_LOG_DEBUG << "nbd-proxy.onmessage(len = " << data.length() << ")"; // Acquire proxy from sessions diff --git a/redfish-core/lib/virtual_media.hpp b/redfish-core/lib/virtual_media.hpp index dbe29b15d8..f6a56f69a2 100644 --- a/redfish-core/lib/virtual_media.hpp +++ b/redfish-core/lib/virtual_media.hpp @@ -795,8 +795,7 @@ class VirtualMediaActionInsertMedia : public Node // Pass secret over pipe secretPipe->async_write( - [asyncResp](const boost::system::error_code& ec, - std::size_t size) { + [asyncResp](const boost::system::error_code& ec, std::size_t) { if (ec) { BMCWEB_LOG_ERROR << "Failed to pass secret: " << ec; @@ -1012,7 +1011,7 @@ class VirtualMediaCollection : public Node /** * Functions triggers appropriate requests on DBus */ - void doGet(crow::Response& res, const crow::Request& req, + void doGet(crow::Response& res, const crow::Request&, const std::vector<std::string>& params) override { auto asyncResp = std::make_shared<AsyncResp>(res); @@ -1087,7 +1086,7 @@ class VirtualMedia : public Node /** * Functions triggers appropriate requests on DBus */ - void doGet(crow::Response& res, const crow::Request& req, + void doGet(crow::Response& res, const crow::Request&, const std::vector<std::string>& params) override { // Check if there is required param, truly entering this shall be |