t.cpp:4:8: style: The scope of the variable 'done' can be reduced. [variableScope] t.cpp:4:13: style: Variable 'done' is assigned a value that is never used. [unreadVariable] t.cpp:6:9: style: Variable 'done' is assigned a value that is never used. [unreadVariable]
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It seems like 'not' isn't getting recognized here. Tricky to reproduce, it has to be in a const member function.
t.cpp:4:8: style: The scope of the variable 'done' can be reduced. [variableScope]
t.cpp:4:13: style: Variable 'done' is assigned a value that is never used. [unreadVariable]
t.cpp:6:9: style: Variable 'done' is assigned a value that is never used. [unreadVariable]
Thank you! I have created ticket https://trac.cppcheck.net/ticket/9689