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/TachSensor.cpp b/src/TachSensor.cpp
index 7c026b8..0a7048a 100644
--- a/src/TachSensor.cpp
+++ b/src/TachSensor.cpp
@@ -191,7 +191,7 @@
restartRead(pollTime);
}
-void TachSensor::checkThresholds(void)
+void TachSensor::checkThresholds()
{
bool status = thresholds::checkThresholds(this);
@@ -253,7 +253,7 @@
gpioLine.release();
}
-void PresenceSensor::monitorPresence(void)
+void PresenceSensor::monitorPresence()
{
gpioFd.async_wait(boost::asio::posix::stream_descriptor::wait_read,
[this](const boost::system::error_code& ec) {
@@ -274,7 +274,7 @@
});
}
-void PresenceSensor::read(void)
+void PresenceSensor::read()
{
gpioLine.event_read();
status = (gpioLine.get_value() != 0);
@@ -289,7 +289,7 @@
}
}
-bool PresenceSensor::getValue(void) const
+bool PresenceSensor::getValue() const
{
return status;
}