Skip to content

Commit

Permalink
Merge pull request #3307 from gberkes/v3/cppcheck_v2_16_upgrade
Browse files Browse the repository at this point in the history
Fix: Add false positive cppcheck-suppress for compatibility with upda…
  • Loading branch information
airween authored Nov 23, 2024
2 parents 41fd21b + 5309194 commit fd45641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fd45641

Please sign in to comment.