Hello, I did see a couple of other false positives related to knownConditionTrueFalse in the Forum; However they didn't seem to be exactly the same. The following code is flagging a false positive of: knownConditionTrueFalse
This is a simplfied test program, where it looks like it is missing that the second if statement can break out and then pool != NULL.
Hello, I did see a couple of other false positives related to knownConditionTrueFalse in the Forum; However they didn't seem to be exactly the same. The following code is flagging a false positive of: knownConditionTrueFalse
This is a simplfied test program, where it looks like it is missing that the second if statement can break out and then pool != NULL.
Thanks!
Last edit: David Zanter 2021-11-24
Thanks! I can reproduce. I have created https://trac.cppcheck.net/ticket/10625