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/IntelCPUSensor.hpp b/src/IntelCPUSensor.hpp
index 0417c6e..88e6040 100644
--- a/src/IntelCPUSensor.hpp
+++ b/src/IntelCPUSensor.hpp
@@ -34,7 +34,7 @@
static constexpr unsigned int sensorPollMs = 1000;
static constexpr size_t warnAfterErrorCount = 10;
static constexpr const char* labelTcontrol = "Tcontrol";
- void setupRead(void);
+ void setupRead();
private:
sdbusplus::asio::object_server& objServer;
@@ -51,9 +51,9 @@
uint8_t minMaxReadCounter{0};
int fd{};
void handleResponse(const boost::system::error_code& err);
- void checkThresholds(void) override;
- void updateMinMaxValues(void);
- void restartRead(void);
+ void checkThresholds() override;
+ void updateMinMaxValues();
+ void restartRead();
};
extern boost::container::flat_map<std::string, std::shared_ptr<IntelCPUSensor>>