Skip to content

Commit 450c966

Browse files
author
Felipe Zimmerle
committed
Fix a set of compilation warnings
1 parent c8666fa commit 450c966

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
v3.0.x - YYYY-MMM-DD (To be released)
22
-------------------------------------
33

4+
- Fix a set of compilation warnings
5+
[Issue #1650 - @zimmerle, @JayCase]
46
- Check for disruptive action on SecDefaultAction.
57
[Issue #1614 - @zimmerle, @michaelgranzow-avi]
68
- Fix block-block infinite loop.

headers/modsecurity/rule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Rule {
5050
std::string fileName,
5151
int lineNumber);
5252
explicit Rule(std::string marker);
53-
~Rule();
53+
virtual ~Rule();
5454

5555
virtual bool evaluate(Transaction *transaction,
5656
std::shared_ptr<RuleMessage> rm);

src/operators/rx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Rx : public Operator {
6060
const std::string& input,
6161
std::shared_ptr<RuleMessage> ruleMessage) override;
6262

63-
bool init(const std::string &arg, std::string *error);
63+
bool init(const std::string &arg, std::string *error) override;
6464

6565
private:
6666
Regex *m_re;

0 commit comments

Comments
 (0)