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/IpmbSensor.hpp b/src/IpmbSensor.hpp
index 54a2a4a..58f20d5 100644
--- a/src/IpmbSensor.hpp
+++ b/src/IpmbSensor.hpp
@@ -91,12 +91,12 @@
std::string& sensorTypeName);
~IpmbSensor() override;
- void checkThresholds(void) override;
- void read(void);
- void init(void);
- std::string getSubTypeUnits(void) const;
- void loadDefaults(void);
- void runInitCmd(void);
+ void checkThresholds() override;
+ void read();
+ void init();
+ std::string getSubTypeUnits() const;
+ void loadDefaults();
+ void runInitCmd();
bool processReading(const std::vector<uint8_t>& data, double& resp);
void parseConfigValues(const SensorBaseConfigMap& entry);
bool sensorClassType(const std::string& sensorClass);
@@ -120,7 +120,7 @@
ReadingFormat readingFormat = ReadingFormat::byte0;
private:
- void sendIpmbRequest(void);
+ void sendIpmbRequest();
sdbusplus::asio::object_server& objectServer;
boost::asio::steady_timer waitTimer;
void ipmbRequestCompletionCb(const boost::system::error_code& ec,