LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

UNUSED macro

Which is the exact meaning of UNUSED macro that is defined and used in the programmer's toolbox? I can't figure out what it is aimed to.
 
Thanks


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 1 of 3
(3,824 Views)

Is it not provided simply to ensure that an external compiler will think that the unused variable is actually used and thus not generate an "unused variable" warning? The macro is harmless and simply generates a dummy variable reference that will not be optimised out.

JR

0 Kudos
Message 2 of 3
(3,825 Views)

Thanks JR: I was suspecting it were something like you said. I got in touch with UNUSED macro digging into the programmaer's toolbox as suggested by MJF post on Progress bar: I noticed that this macro is used in ProgressCancelCallback function but it seems not to have other relevant use.

Anyway, since I am only compiling within CVI I assume I can continue ignoring its presence as usual Smiley Wink



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 3
(3,811 Views)