mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Fix: Add false positive cppcheck-suppress for compatibility with updated cppcheck version
- Added a cppcheck-suppress directive to handle a false positive detected by cppcheck 2.16. - This change addresses an issue caused by the recent Homebrew update on macOS CI runner, which upgraded cppcheck from version 2.15 to 2.16.
This commit is contained in:
parent
41fd21b0fb
commit
530919439b
@ -210,7 +210,7 @@ bool isFile(const std::string& f) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
fstat(fileno(fp), &fileInfo);
|
fstat(fileno(fp), &fileInfo);
|
||||||
if (!S_ISREG(fileInfo.st_mode)) {
|
if (!S_ISREG(fileInfo.st_mode)) { // cppcheck-suppress syntaxError ; false positive
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user