diff --git a/headers/modsecurity/transaction.h b/headers/modsecurity/transaction.h index 83d85012..811a2c83 100644 --- a/headers/modsecurity/transaction.h +++ b/headers/modsecurity/transaction.h @@ -310,7 +310,7 @@ class TransactionSecMarkerManagement { if (m_marker) { return m_marker; } else { - throw; + throw; // cppcheck-suppress rethrowNoCurrentException } } diff --git a/src/rule_with_actions.cc b/src/rule_with_actions.cc index 7c9471c1..df323c4b 100644 --- a/src/rule_with_actions.cc +++ b/src/rule_with_actions.cc @@ -124,7 +124,7 @@ RuleWithActions::RuleWithActions( delete a; std::cout << "General failure, action: " << a->m_name; std::cout << " has an unknown type." << std::endl; - throw; + throw; // cppcheck-suppress rethrowNoCurrentException } } delete actions; diff --git a/src/utils/shared_files.h b/src/utils/shared_files.h index bec28f65..d0d8ef99 100644 --- a/src/utils/shared_files.h +++ b/src/utils/shared_files.h @@ -84,7 +84,7 @@ class SharedFiles { bool toBeCreated(false); bool err = false; - m_memKeyStructure = ftok(".", 1); + m_memKeyStructure = ftok(".", 1); // cppcheck-suppress useInitializationList if (m_memKeyStructure < 0) { err = true; goto err_mem_key; diff --git a/test/cppcheck_suppressions.txt b/test/cppcheck_suppressions.txt index 7f7c4526..bff688d8 100644 --- a/test/cppcheck_suppressions.txt +++ b/test/cppcheck_suppressions.txt @@ -30,10 +30,6 @@ shiftNegative:src/utils/msc_tree.cc // // 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_global.cc