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/monitor/tach_sensor.cpp b/monitor/tach_sensor.cpp
index 0ff1828..be56c69 100644
--- a/monitor/tach_sensor.cpp
+++ b/monitor/tach_sensor.cpp
@@ -70,11 +70,11 @@
}
}
-TachSensor::TachSensor(Mode mode, sdbusplus::bus::bus& bus, Fan& fan,
- const std::string& id, bool hasTarget, size_t funcDelay,
- const std::string& interface, double factor,
- int64_t offset, size_t method, size_t threshold,
- bool ignoreAboveMax, size_t timeout,
+TachSensor::TachSensor([[maybe_unused]] Mode mode, sdbusplus::bus::bus& bus,
+ Fan& fan, const std::string& id, bool hasTarget,
+ size_t funcDelay, const std::string& interface,
+ double factor, int64_t offset, size_t method,
+ size_t threshold, bool ignoreAboveMax, size_t timeout,
const std::optional<size_t>& errorDelay,
size_t countInterval, const sdeventplus::Event& event) :
_bus(bus),