Hi Daniel, Thanks for the quick response ! I would be interested in fixing this issue, but truth be told, I don't think I will have time in the next couple of weeks. If that is not an issue, I'll have a look at it when I have time. Best regards, Ronnie
Hi, I found an unitialized member in my code, that was not detected by cppcheck. See reproduction code below. Theoretically cppcheck is correct, the member is always true at the end of the constructor, but I was expecting some sort of message. Is there a way to convince cppcheck to give me a warning for this, or is this a bug? Code: ` struct A { A(); bool m_a; }; void doSomething() { } A::A() { if (m_a) { doSomething(); } else { m_a = true; } } `
Hi, I found an unitialized member in my code, that was not detected by cppcheck. See reproduction code below. Theoretically cppcheck is correct, the member is always true at the end of the constructor, but I was expecting some sort of message. Is there a way to convince cppcheck to give me a warning for this, or is this a bug? Code: ` struct A { A(); bool m_a; }; void doSomething() { } A::A() { if (m_a) { doSomething(); } else { m_a = true; } } `