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/json_config.hpp b/json_config.hpp
index 82d7c58..aae33b9 100644
--- a/json_config.hpp
+++ b/json_config.hpp
@@ -209,7 +209,6 @@
*
* @brief Get the configuration file to be used
*
- * @param[in] bus - The dbus bus object
* @param[in] appName - The phosphor-fan-presence application name
* @param[in] fileName - Application's configuration file's name
* @param[in] isOptional - Config file is optional, default to 'false'
@@ -217,8 +216,7 @@
* @return filesystem path
* The filesystem path to the configuration file to use
*/
- static const fs::path getConfFile(sdbusplus::bus::bus& bus,
- const std::string& appName,
+ static const fs::path getConfFile(const std::string& appName,
const std::string& fileName,
bool isOptional = false)
{