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.hpp b/src/TachSensor.hpp
index b53b5ae..845fbec 100644
--- a/src/TachSensor.hpp
+++ b/src/TachSensor.hpp
@@ -23,9 +23,9 @@
boost::asio::io_context& io, const std::string& name);
~PresenceSensor();
- void monitorPresence(void);
- void read(void);
- bool getValue(void) const;
+ void monitorPresence();
+ void read();
+ bool getValue() const;
private:
bool status = true;
@@ -96,7 +96,7 @@
void handleResponse(const boost::system::error_code& err, size_t bytesRead);
void restartRead(size_t pollTime);
- void checkThresholds(void) override;
+ void checkThresholds() override;
};
inline void logFanInserted(const std::string& device)
@@ -113,13 +113,13 @@
device);
}
-inline void logFanRedundancyLost(void)
+inline void logFanRedundancyLost()
{
const auto* msg = "OpenBMC.0.1.FanRedundancyLost";
lg2::error("Fan Inserted", "REDFISH_MESSAGE_ID", msg);
}
-inline void logFanRedundancyRestored(void)
+inline void logFanRedundancyRestored()
{
const auto* msg = "OpenBMC.0.1.FanRedundancyRegained";
lg2::error("Fan Removed", "REDFISH_MESSAGE_ID", msg);