function main
local nVar := 0
nVar++
return nil

In the code above harbour returns:
testopt.prg:2:MAIN warning: W0032  Variable 'NVAR' is assigned but not
used in function '2:MAIN'

if I "fix" the warning removing ":= 0" with:

function main
local nVar
nVar++
return nil

I get no more messages but I the code stops with a RT error at line 3.

Is there any way to detect such situation?

best regards,
Lorenzo
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to