Skip to content

Commit

Permalink
fix some additional compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vmatare committed Oct 15, 2024
1 parent 259d4a3 commit 0c8aebf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ namespace thinkfan {
class Driver {
protected:
Driver(bool optional, unsigned int max_errors);
virtual ~Driver() noexcept(false) = default;

template<typename FnSignatureT>
using FN = std::function<FnSignatureT>;
Expand Down
2 changes: 1 addition & 1 deletion src/fans.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class FanDriver : public Driver {

public:
bool is_default() { return path().length() == 0; }
virtual ~FanDriver() noexcept(false);
virtual ~FanDriver() noexcept(false) override;
virtual void set_speed(const Level &level) = 0;
const string &current_speed() const;
virtual void ping_watchdog_and_depulse(const Level &) {}
Expand Down
2 changes: 1 addition & 1 deletion src/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class RegexParser : public Parser<string> {
string re_str;
public:
RegexParser(const string expr, const unsigned int data_idx = 0, bool match_nl = false);
virtual ~RegexParser();
virtual ~RegexParser() override;
virtual string *_parse(const char *&input) override;
};

Expand Down
2 changes: 1 addition & 1 deletion src/sensors.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class SensorDriver : public Driver {
SensorDriver(bool optional, opt<vector<int>> correction = nullopt, opt<unsigned int> max_errors = nullopt);

public:
virtual ~SensorDriver() noexcept(false);
virtual ~SensorDriver() noexcept(false) override;
unsigned int num_temps() const { return *num_temps_; }
void set_correction(const vector<int> &correction);
bool operator == (const SensorDriver &other) const;
Expand Down

0 comments on commit 0c8aebf

Please sign in to comment.