Merge pull request #3307 from gberkes/v3/cppcheck_v2_16_upgrade

Fix: Add false positive cppcheck-suppress for compatibility with upda…
This commit is contained in:
Ervin Hegedus 2024-11-23 09:28:08 +00:00 committed by GitHub
commit fd4564131f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -210,7 +210,7 @@ bool isFile(const std::string& f) {
return false;
}
fstat(fileno(fp), &fileInfo);
if (!S_ISREG(fileInfo.st_mode)) {
if (!S_ISREG(fileInfo.st_mode)) { // cppcheck-suppress syntaxError ; false positive
fclose(fp);
return false;
}