Exemplo
void
function(
int
input)
{
if
(
++
input > 0){
doSomething();
}
}
Solução
Não utilize os operadores de incremento em expressões condicionais.
void
function(
int
input)
{
input++;
if
(input > 0){
doSomething();
}
}