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/json_parser.cpp b/monitor/json_parser.cpp
index a46e2a9..1144998 100644
--- a/monitor/json_parser.cpp
+++ b/monitor/json_parser.cpp
@@ -198,7 +198,7 @@
}
// Valid deviation range is 0 - 100%
auto deviation = fan["deviation"].get<size_t>();
- if (deviation < 0 || 100 < deviation)
+ if (100 < deviation)
{
auto msg = fmt::format(
"Invalid deviation of {} found, must be between 0 and 100",