Fix cppcheck warnings
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Ibe6b12e81292c655f0ab1420159521c2e6991e37
diff --git a/command/payload_cmds.cpp b/command/payload_cmds.cpp
index 01e1117..4083209 100644
--- a/command/payload_cmds.cpp
+++ b/command/payload_cmds.cpp
@@ -111,7 +111,7 @@
std::vector<uint8_t>
deactivatePayload(const std::vector<uint8_t>& inPayload,
- std::shared_ptr<message::Handler>& handler)
+ std::shared_ptr<message::Handler>& /* handler */)
{
auto request =
reinterpret_cast<const DeactivatePayloadRequest*>(inPayload.data());
@@ -183,7 +183,7 @@
std::vector<uint8_t>
getPayloadStatus(const std::vector<uint8_t>& inPayload,
- std::shared_ptr<message::Handler>& handler)
+ std::shared_ptr<message::Handler>& /* handler */)
{
auto request =
reinterpret_cast<const GetPayloadStatusRequest*>(inPayload.data());
@@ -215,8 +215,9 @@
return outPayload;
}
-std::vector<uint8_t> getPayloadInfo(const std::vector<uint8_t>& inPayload,
- std::shared_ptr<message::Handler>& handler)
+std::vector<uint8_t>
+ getPayloadInfo(const std::vector<uint8_t>& inPayload,
+ std::shared_ptr<message::Handler>& /* handler */)
{
auto request =
reinterpret_cast<const GetPayloadInfoRequest*>(inPayload.data());