Cppcheck will throw this style error on this section of code:
"Condition '(test_states^(FIRST|SECOND|THIRD|FOURTH))==0' is always false"
I think this is a false positive, because executed_states could be equal to ( FIRST | SECOND | THIRD | FOURTH), in which case the condition Cppcheck is complaining about would be true.
This is a new error that popped up for me after upgrading from version 2.4 to 2.5
Cppcheck will throw this style error on this section of code:
"Condition '(test_states^(FIRST|SECOND|THIRD|FOURTH))==0' is always false"
I think this is a false positive, because executed_states could be equal to ( FIRST | SECOND | THIRD | FOURTH), in which case the condition Cppcheck is complaining about would be true.
This is a new error that popped up for me after upgrading from version 2.4 to 2.5
Thanks, I can reproduce this with current head. Ticket is here.