In this line:

In this line:
for i := 0 to High(FerUsa.FOchiuri) do
I have this warning:
[dcc32 Warning] DefOchiuri.pas(20680): W1037 FOR-Loop variable 'i' may be undefined after loop

What can I understand from this?

Comments

  1. Cristian Peța [speculating] but since the compiler cannot know what High(a) will result in, if it's negative then the loop will be skipped. So if the compiler optimizes away the loop in that case, i will be uninitialised. But i agree that the warning is a bit... strange.

    ReplyDelete

Post a Comment