Add modernize-redundant-void-arg
Enable this check and fix the failures.
Change-Id: I89b13daf1161be40564367562bb9c8c0c459e1d0
Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/src/PSUSensor.cpp b/src/PSUSensor.cpp
index 0c763c0..96f849a 100644
--- a/src/PSUSensor.cpp
+++ b/src/PSUSensor.cpp
@@ -134,7 +134,7 @@
path = "";
}
-void PSUSensor::setupRead(void)
+void PSUSensor::setupRead()
{
if (!readingStateGood())
{
@@ -169,7 +169,7 @@
});
}
-void PSUSensor::restartRead(void)
+void PSUSensor::restartRead()
{
std::weak_ptr<PSUSensor> weakRef = weak_from_this();
waitTimer.expires_after(std::chrono::milliseconds(sensorPollMs));
@@ -231,7 +231,7 @@
restartRead();
}
-void PSUSensor::checkThresholds(void)
+void PSUSensor::checkThresholds()
{
if (!readingStateGood())
{