meson support: remove code warnings 1
This commit contains code changes necessary to support the increased
warning level from Meson builds. Most changes are for unused variables.
To keep the review size manageable, this commit contains only monitor
and presence changes (and top-level json_config.hpp).
Signed-off-by: Mike Capps <mikepcapps@gmail.com>
Change-Id: I7280b512c54e8d5aeba3300764a239f3dcbab14d
diff --git a/presence/json_parser.cpp b/presence/json_parser.cpp
index e09317b..7858c4f 100644
--- a/presence/json_parser.cpp
+++ b/presence/json_parser.cpp
@@ -61,8 +61,7 @@
if (!_loaded)
{
- process(
- config::load(config::getConfFile(_bus, confAppName, confFileName)));
+ process(config::load(config::getConfFile(confAppName, confFileName)));
_loaded = true;
@@ -78,8 +77,8 @@
return _policies;
}
-void JsonConfig::sighupHandler(sdeventplus::source::Signal& sigSrc,
- const struct signalfd_siginfo* sigInfo)
+void JsonConfig::sighupHandler(sdeventplus::source::Signal& /*sigSrc*/,
+ const struct signalfd_siginfo* /*sigInfo*/)
{
try
{
@@ -88,8 +87,7 @@
_reporter.reset();
// Load and process the json configuration
- process(
- config::load(config::getConfFile(_bus, confAppName, confFileName)));
+ process(config::load(config::getConfFile(confAppName, confFileName)));
for (auto& p : _policies)
{