mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 18:05:28 +03:00
Add cppcheck suppressions for false positives
This commit is contained in:
committed by
Eduardo Arias
parent
c2b86ddc49
commit
d053ec6de6
@@ -24,7 +24,7 @@
|
||||
#include "mbedtls/base64.h"
|
||||
|
||||
template<typename Operation>
|
||||
inline std::string base64Helper(const char *data, const unsigned int len, Operation op) {
|
||||
inline std::string base64Helper(const char *data, const unsigned int len, Operation op) { // cppcheck-suppress syntaxError ; false positive
|
||||
size_t out_len = 0;
|
||||
|
||||
op(nullptr, 0, &out_len,
|
||||
|
||||
@@ -257,7 +257,7 @@ inline std::string string_to_hex(std::string_view input) {
|
||||
|
||||
|
||||
template<typename Operation>
|
||||
inline std::string toCaseHelper(std::string str, Operation op) {
|
||||
inline std::string toCaseHelper(std::string str, Operation op) { // cppcheck-suppress syntaxError ; false positive
|
||||
std::transform(str.begin(),
|
||||
str.end(),
|
||||
str.begin(),
|
||||
|
||||
Reference in New Issue
Block a user