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.hpp b/src/PSUSensor.hpp
index 69f365b..f9b738f 100644
--- a/src/PSUSensor.hpp
+++ b/src/PSUSensor.hpp
@@ -27,11 +27,11 @@
const std::string& label, size_t tSize, double pollRate,
const std::shared_ptr<I2CDevice>& i2cDevice);
~PSUSensor() override;
- void setupRead(void);
+ void setupRead();
void activate(const std::string& newPath,
const std::shared_ptr<I2CDevice>& newI2CDevice);
- void deactivate(void);
- bool isActive(void);
+ void deactivate();
+ bool isActive();
std::shared_ptr<I2CDevice> getI2CDevice() const
{
@@ -53,7 +53,7 @@
thresholds::ThresholdTimer thresholdTimer;
void restartRead();
void handleResponse(const boost::system::error_code& err, size_t bytesRead);
- void checkThresholds(void) override;
+ void checkThresholds() override;
unsigned int sensorPollMs = defaultSensorPollMs;
static constexpr size_t warnAfterErrorCount = 10;