File tree 4 files changed +3
-7
lines changed 4 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ class TransactionSecMarkerManagement {
310
310
if (m_marker) {
311
311
return m_marker;
312
312
} else {
313
- throw ;
313
+ throw ; // cppcheck-suppress rethrowNoCurrentException
314
314
}
315
315
}
316
316
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ RuleWithActions::RuleWithActions(
124
124
delete a;
125
125
std::cout << " General failure, action: " << a->m_name ;
126
126
std::cout << " has an unknown type." << std::endl;
127
- throw ;
127
+ throw ; // cppcheck-suppress rethrowNoCurrentException
128
128
}
129
129
}
130
130
delete actions;
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ class SharedFiles {
84
84
bool toBeCreated (false );
85
85
bool err = false ;
86
86
87
- m_memKeyStructure = ftok (" ." , 1 );
87
+ m_memKeyStructure = ftok (" ." , 1 ); // cppcheck-suppress useInitializationList
88
88
if (m_memKeyStructure < 0 ) {
89
89
err = true ;
90
90
goto err_mem_key;
Original file line number Diff line number Diff line change @@ -30,10 +30,6 @@ shiftNegative:src/utils/msc_tree.cc
30
30
//
31
31
// ModSecurity v3 code...
32
32
//
33
- useInitializationList:src/utils/shared_files.h:87
34
- rethrowNoCurrentException:headers/modsecurity/transaction.h:313
35
- rethrowNoCurrentException:src/rule_with_actions.cc:127
36
-
37
33
variableScope:src/operators/rx.cc
38
34
variableScope:src/operators/rx_global.cc
39
35
You can’t perform that action at this time.
0 commit comments