From 530919439b6ec1e419ef1674aaee42a952f164a8 Mon Sep 17 00:00:00 2001 From: Gabor Berkes Date: Fri, 22 Nov 2024 23:36:40 +0000 Subject: [PATCH] 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. --- src/utils/system.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/system.cc b/src/utils/system.cc index f48afb7d..830b3424 100644 --- a/src/utils/system.cc +++ b/src/utils/system.cc @@ -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; }