Skip to content

Commit

Permalink
Fix: Add false positive cppcheck-suppress for compatibility with upda…
Browse files Browse the repository at this point in the history
…ted 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.
  • Loading branch information
Gabor Berkes committed Nov 22, 2024
1 parent 41fd21b commit 5309194
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 5309194

Please sign in to comment.