From f5b16f030f1fd67412c7d279e79b58ffc5e36f67 Mon Sep 17 00:00:00 2001 From: Vikram Bodireddy Date: Wed, 26 Aug 2020 14:54:51 +0530 Subject: 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 Change-Id: I139c01a78babc1c370c0c5de787291726ea42b53 --- redfish-core/lib/virtual_media.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'redfish-core/lib') 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& params) override { auto asyncResp = std::make_shared(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& params) override { // Check if there is required param, truly entering this shall be -- cgit v1.2.3