Add cppcheck suppressions for false positives

This commit is contained in:
Eduardo Arias
2024-08-21 08:32:28 -07:00
committed by Eduardo Arias
parent c2b86ddc49
commit d053ec6de6
6 changed files with 7 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ namespace modsecurity::actions::transformations {
static inline bool inplace(std::string &value) {
if (value.empty()) return false;
for(auto &c : value) {
for(auto &c : value) { // cppcheck-suppress constVariableReference ; false positive
((unsigned char&)c) &= 0x7f;
}