We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ad5a94 commit 6a65786Copy full SHA for 6a65786
1 file changed
test/cfg/posix.c
@@ -38,7 +38,9 @@ void knownConditionTrueFalse_ffs(int i)
38
// ffs() returns the position of the first bit set, or 0 if no bits are set in i.
39
const int x = ffs(0);
40
// cppcheck-suppress knownConditionTrueFalse
41
- if (x == 0) {}
+ if (x == 0) {} // always true
42
+ // cppcheck-suppress knownConditionTrueFalse
43
+ if (x == 1) {} // always false
44
if (ffs(i) == 0) {}
45
}
46
0 commit comments