build: fix some warnings
Fix a couple of warnings:
-Werror=unused-parameter
-Werror=non-virtual-dtor
so we can use meson's warning_level=3 and -Werror without build
failures.
Change-Id: Id3c15c2fee70799bee98a8d2890c33ab5ebfd563
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/power-sequencer/pgood_monitor.cpp b/power-sequencer/pgood_monitor.cpp
index 98c3faa..fc593f0 100644
--- a/power-sequencer/pgood_monitor.cpp
+++ b/power-sequencer/pgood_monitor.cpp
@@ -95,7 +95,7 @@
bus,
sdbusplus::bus::match::rules::propertiesChanged(POWER_OBJ_PATH,
POWER_INTERFACE),
- [this](auto& msg) { this->propertyChanged(); });
+ [this](auto&) { this->propertyChanged(); });
}
int PGOODMonitor::run()
diff --git a/power-sequencer/runtime_monitor.cpp b/power-sequencer/runtime_monitor.cpp
index 5d17eb9..fa9ecfe 100644
--- a/power-sequencer/runtime_monitor.cpp
+++ b/power-sequencer/runtime_monitor.cpp
@@ -40,7 +40,7 @@
#endif
}
-void RuntimeMonitor::onPowerLost(sdbusplus::message::message& msg)
+void RuntimeMonitor::onPowerLost(sdbusplus::message::message&)
{
log<level::INFO>("PGOOD failure detected. Checking for faults.");