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/control/json/manager.hpp b/control/json/manager.hpp
index 8c2be03..3fbcc9c 100644
--- a/control/json/manager.hpp
+++ b/control/json/manager.hpp
@@ -204,9 +204,9 @@
     {
         std::map<configKey, std::unique_ptr<T>> config;
 
-        auto confFile =
-            fan::JsonConfig::getConfFile(util::SDBusPlus::getBus(), confAppName,
-                                         T::confFileName, isOptional);
+        auto confFile = fan::JsonConfig::getConfFile(
+            confAppName, T::confFileName, isOptional);
+
         if (!confFile.empty())
         {
             FlightRecorder::instance().log(