LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

non-sequential order of build output

Hello,

so far I had the impression that warning and error messages in the build output window are sorted by line numbers - until today I found an exception...

it is the first file in the project, subsequent files behave normally

 

warnings.png

 

 

 

0 Kudos
Message 1 of 2
(2,356 Views)

In your case, it's likely this happens because compiler detects the unused variables when the variables scope ends. You have two variables defined in different lines (I suppose) and compiler treats them in the order it prefers, may be in LIFO order (they are stack based auto variable, it make senses, it isn't ?).
Too lazy to test it on my PC...

Carlo A.
Megaris




0 Kudos
Message 2 of 2
(2,284 Views)