First page Back Continue Last page Overview Graphics

Eksempler (1b)

memcpy(&tmp,&x,sizeof(tmp));

t266.cc 5 Warning 420: Apparent access beyond array for function 'memcpy(void *, const void *, unsigned long)', argument 3 (size=8) exceeds argument 2 (size=4) _

return result;

t266.cc 8 Warning 1571: Returning an auto variable 'result' via a reference type

_

long l = suspect_function(100l,42,0);

t266.cc 12 Warning 620: Suspicious constant (L or one?)

_

}

t266.cc 13 Warning 438: Last value assigned to variable 'l' (defined at line 12) not used

_

}

t266.cc 13 Warning 529: Symbol 'l' (line 13) not subsequently referenced

During Specific Walk:

File t266.cc line 12: suspect_function(100, 42, 0) #1

t266.cc 7 Warning 414: Possible division by 0 [Reference: file t266.cc: line 12]

t266.cc 12 Info 831: Reference cited in prior message

Notes:

Fandt du alle fejlene?