Fix clang-tidy 14 issues
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Idb76ae375eff9a143497942013d94ca3b3252495
diff --git a/include/sensor.hpp b/include/sensor.hpp
index 236c6e7..078fc45 100644
--- a/include/sensor.hpp
+++ b/include/sensor.hpp
@@ -68,7 +68,7 @@
minValue(min), thresholds(std::move(thresholdData)),
hysteresisTrigger((max - min) * 0.01),
hysteresisPublish((max - min) * 0.0001), dbusConnection(conn),
- readState(readState), errCount(0),
+ readState(readState),
instrumentation(enableInstrumentation
? std::make_unique<SensorInstrumentation>()
: nullptr)
@@ -102,7 +102,7 @@
double hysteresisPublish;
std::shared_ptr<sdbusplus::asio::connection> dbusConnection;
PowerState readState;
- size_t errCount;
+ size_t errCount{0};
std::unique_ptr<SensorInstrumentation> instrumentation;
// This member variable provides a hook that can be used to receive