mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Cosmetics: reducing the compilation warnings
This commit is contained in:
@@ -122,13 +122,10 @@ bool SetVar::evaluate(Rule *rule, Transaction *transm_parser_payload) {
|
||||
value = 0;
|
||||
}
|
||||
|
||||
switch (m_operation) {
|
||||
case sumAndSetOperation:
|
||||
targetValue = std::to_string(value + pre);
|
||||
break;
|
||||
case substractAndSetOperation:
|
||||
targetValue = std::to_string(value - pre);
|
||||
break;
|
||||
if (m_operation == sumAndSetOperation) {
|
||||
targetValue = std::to_string(value + pre);
|
||||
} else if (m_operation == substractAndSetOperation) {
|
||||
targetValue = std::to_string(value - pre);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -31,7 +31,7 @@ class Status : public Action {
|
||||
public:
|
||||
explicit Status(std::string action) : Action(action, 2) { }
|
||||
|
||||
bool init(std::string *error);
|
||||
bool init(std::string *error) override;
|
||||
bool evaluate(Rule *rule, Transaction *transaction) override;
|
||||
void fillIntervention(ModSecurityIntervention *i) override;
|
||||
|
||||
|
Reference in New Issue
Block a user