Package: cppcheck
Version: 1.44-1
Severity: normal

Hello Reijo,

cppcheck report the following spurious warning:

[cpp.c:6]: (warning) Assignment of function parameter has no effect outside the 
function.

long
fun(long prec)
{
label:
  printf("%ld\n",prec);
  if (prec) { prec<<=1; goto label; }
  return 0;
}

It seems not to understand that the goto change the control flow.

Cheers,
-- 
Bill. <ballo...@debian.org>

Imagine a large red swirl here. 


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to