Skip to content

Commit 5309194

Browse files
author
Gabor Berkes
committed
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.
1 parent 41fd21b commit 5309194

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/system.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ bool isFile(const std::string& f) {
210210
return false;
211211
}
212212
fstat(fileno(fp), &fileInfo);
213-
if (!S_ISREG(fileInfo.st_mode)) {
213+
if (!S_ISREG(fileInfo.st_mode)) { // cppcheck-suppress syntaxError ; false positive
214214
fclose(fp);
215215
return false;
216216
}

0 commit comments

Comments
 (0)