Skip to content

Commit ca52e88

Browse files
committed
cosmetics: Please cppcheck
1 parent 465db29 commit ca52e88

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

headers/modsecurity/transaction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ class TransactionSecMarkerManagement {
303303
if (m_marker) {
304304
return m_marker;
305305
} else {
306-
throw;
306+
throw std::runtime_error("Error get current marker\n");
307307
}
308308
}
309309

src/rule_with_actions.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ RuleWithActions::RuleWithActions(
120120
delete a;
121121
std::cout << "General failure, action: " << a->m_name;
122122
std::cout << " has an unknown type." << std::endl;
123-
throw;
123+
throw std::runtime_error("Unexpected condition. Action without a type.\n");
124124
}
125125
}
126126
delete actions;

test/cppcheck_suppressions.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ knownConditionTrueFalse:src/operators/verify_svnr.cc:87
5757

5858
noExplicitConstructor:seclang-parser.hh
5959
constParameter:seclang-parser.hh
60+
accessMoved:seclang-parser.hh
6061

6162
unusedFunction
6263
missingIncludeSystem

0 commit comments

Comments
 (0)