diff options
author | Ed Tanous <ed@tanous.net> | 2020-07-25 22:02:03 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2020-08-17 23:54:37 +0300 |
commit | cb13a39253848ece442971301ade9c09d98bf08e (patch) | |
tree | 62f2a64fbc98d8ee635a0a81f3ef07afa541981d /redfish-core/lib/event_service.hpp | |
parent | 23a21a1cbed23ace4174664950e595df961e9e69 (diff) | |
download | bmcweb-cb13a39253848ece442971301ade9c09d98bf08e.tar.xz |
Enable unused variable warnings and resolve
This commit enables the "unused variables" warning in clang. Throughout
this, it did point out several issues that would've been functional
bugs, so I think it was worthwhile. It also cleaned up several unused
variable from old constructs that no longer exist.
Tested:
Built with clang. Code no longer emits warnings.
Downloaded bmcweb to system and pulled up the webui, observed webui
loads and logs in properly.
Change-Id: I51505f4222cc147d6f2b87b14d7e2ac4a74cafa8
Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'redfish-core/lib/event_service.hpp')
-rw-r--r-- | redfish-core/lib/event_service.hpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/redfish-core/lib/event_service.hpp b/redfish-core/lib/event_service.hpp index fa06fcf0b8..7d17ceacb2 100644 --- a/redfish-core/lib/event_service.hpp +++ b/redfish-core/lib/event_service.hpp @@ -51,8 +51,8 @@ class EventService : public Node } private: - void doGet(crow::Response& res, const crow::Request& req, - const std::vector<std::string>& params) override + void doGet(crow::Response& res, const crow::Request&, + const std::vector<std::string>&) override { auto asyncResp = std::make_shared<AsyncResp>(res); res.jsonValue = { @@ -92,7 +92,7 @@ class EventService : public Node } void doPatch(crow::Response& res, const crow::Request& req, - const std::vector<std::string>& params) override + const std::vector<std::string>&) override { auto asyncResp = std::make_shared<AsyncResp>(res); @@ -167,8 +167,8 @@ class SubmitTestEvent : public Node } private: - void doPost(crow::Response& res, const crow::Request& req, - const std::vector<std::string>& params) override + void doPost(crow::Response& res, const crow::Request&, + const std::vector<std::string>&) override { EventServiceManager::getInstance().sendTestEventLog(); res.result(boost::beast::http::status::no_content); @@ -192,8 +192,8 @@ class EventDestinationCollection : public Node } private: - void doGet(crow::Response& res, const crow::Request& req, - const std::vector<std::string>& params) override + void doGet(crow::Response& res, const crow::Request&, + const std::vector<std::string>&) override { auto asyncResp = std::make_shared<AsyncResp>(res); @@ -219,7 +219,7 @@ class EventDestinationCollection : public Node } void doPost(crow::Response& res, const crow::Request& req, - const std::vector<std::string>& params) override + const std::vector<std::string>&) override { auto asyncResp = std::make_shared<AsyncResp>(res); @@ -464,7 +464,7 @@ class EventServiceSSE : public Node private: void doGet(crow::Response& res, const crow::Request& req, - const std::vector<std::string>& params) override + const std::vector<std::string>&) override { if (EventServiceManager::getInstance().getNumberOfSubscriptions() >= maxNoOfSubscriptions) @@ -569,7 +569,7 @@ class EventDestination : public Node } private: - 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); @@ -674,7 +674,7 @@ class EventDestination : public Node EventServiceManager::getInstance().updateSubscriptionData(); } - void doDelete(crow::Response& res, const crow::Request& req, + void doDelete(crow::Response& res, const crow::Request&, const std::vector<std::string>& params) override { auto asyncResp = std::make_shared<AsyncResp>(res); |