Replace final three suppressions entries with line numbers

- These were initially not included in these changes, as they were
other PRs (#3104 & #3132) that address them.
This commit is contained in:
Eduardo Arias 2024-04-29 22:28:42 -03:00
parent 95ce3a7db4
commit 9f5dc200ba
4 changed files with 3 additions and 7 deletions

View File

@ -310,7 +310,7 @@ class TransactionSecMarkerManagement {
if (m_marker) { if (m_marker) {
return m_marker; return m_marker;
} else { } else {
throw; throw; // cppcheck-suppress rethrowNoCurrentException
} }
} }

View File

@ -124,7 +124,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; // cppcheck-suppress rethrowNoCurrentException
} }
} }
delete actions; delete actions;

View File

@ -84,7 +84,7 @@ class SharedFiles {
bool toBeCreated(false); bool toBeCreated(false);
bool err = false; bool err = false;
m_memKeyStructure = ftok(".", 1); m_memKeyStructure = ftok(".", 1); // cppcheck-suppress useInitializationList
if (m_memKeyStructure < 0) { if (m_memKeyStructure < 0) {
err = true; err = true;
goto err_mem_key; goto err_mem_key;

View File

@ -30,10 +30,6 @@ shiftNegative:src/utils/msc_tree.cc
// //
// ModSecurity v3 code... // ModSecurity v3 code...
// //
useInitializationList:src/utils/shared_files.h:87
rethrowNoCurrentException:headers/modsecurity/transaction.h:313
rethrowNoCurrentException:src/rule_with_actions.cc:127
variableScope:src/operators/rx.cc variableScope:src/operators/rx.cc
variableScope:src/operators/rx_global.cc variableScope:src/operators/rx_global.cc