cosmetics: Please cppcheck

This commit is contained in:
Felipe Zimmerle
2021-07-15 14:34:06 -03:00
parent 465db29b76
commit ca52e88e60
3 changed files with 3 additions and 2 deletions

View File

@@ -303,7 +303,7 @@ class TransactionSecMarkerManagement {
if (m_marker) { if (m_marker) {
return m_marker; return m_marker;
} else { } else {
throw; throw std::runtime_error("Error get current marker\n");
} }
} }

View File

@@ -120,7 +120,7 @@ RuleWithActions::RuleWithActions(
delete a; delete a;
std::cout << "General failure, action: " << a->m_name; std::cout << "General failure, action: " << a->m_name;
std::cout << " has an unknown type." << std::endl; std::cout << " has an unknown type." << std::endl;
throw; throw std::runtime_error("Unexpected condition. Action without a type.\n");
} }
} }
delete actions; delete actions;

View File

@@ -57,6 +57,7 @@ knownConditionTrueFalse:src/operators/verify_svnr.cc:87
noExplicitConstructor:seclang-parser.hh noExplicitConstructor:seclang-parser.hh
constParameter:seclang-parser.hh constParameter:seclang-parser.hh
accessMoved:seclang-parser.hh
unusedFunction unusedFunction
missingIncludeSystem missingIncludeSystem