gicho / cppcheclipse

Automatically exported from code.google.com/p/cppcheclipse
0 stars 0 forks source link

Warning - Condition is always true #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello friends.

I download newest versions of cppcheck and cppcheclipse.

I create simple project in Eclipse.

int main()
{

if(a=5) return 1;

return 0;

}

But cppcheclipse don't warning in line with "if(a=5) return 1;"
But this condition is always true;

That's wrong or I something do wrong. Thank you. Best regards. Oleg.

Original issue reported on code.google.com by oleg.go...@gmail.com on 8 Jun 2010 at 6:46

GoogleCodeExporter commented 8 years ago
Cppcheck doesn't have a check for "condition is always true" yet.

Original comment by daniel.m...@gmail.com on 14 Jun 2010 at 5:58

GoogleCodeExporter commented 8 years ago
Please add an enhancement request to cppcheck 
(http://sourceforge.net/apps/trac/cppcheck/timeline), since this is no issue I 
can fix in cppcheclipse.

Original comment by konra...@gmx.de on 24 Jun 2010 at 9:41