Fix cppcheck warnings
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: If5d808b9cb3bc733e7e21d546247d745ac5e1bf8
diff --git a/src/callback.hpp b/src/callback.hpp
index bc3ec48..732e671 100644
--- a/src/callback.hpp
+++ b/src/callback.hpp
@@ -38,7 +38,7 @@
* Signal: Callback is called as part of watch condition has been met.
*
*/
- virtual void operator()(Context ctx) = 0;
+ virtual void operator()(Context /* ctx */) = 0;
/** @brief Run the callback.
* @param[in] ctx - caller context
@@ -47,7 +47,8 @@
* Signal: Callback is called as part of watch condition has been met.
* @param[in] msg - The sdbusplus signal message
*/
- virtual void operator()(Context ctx, sdbusplus::message::message& msg){};
+ virtual void operator()(Context /* ctx */,
+ sdbusplus::message::message& /* msg */){};
};
/** @class Conditional
@@ -237,7 +238,7 @@
timer = std::make_unique<TimerType>(
sdeventplus::Event::get_default(),
// **INDENT-OFF**
- [this](auto& source) {
+ [this](auto& /* source */) {
// The timer uses the context saved on timer enable
this->ConditionalCallback<CallbackAccess>::operator()(
this->ctx);