[Lazarus] What is {%H-}?
Sven Barth
pascaldragon at googlemail.com
Fri Apr 5 15:08:30 CEST 2013
Am 05.04.2013 14:52, schrieb Kostas Michalopoulos:
> You can use this:
>
> {$PUSH}{$WARN 5024 OFF}
>
> // Code where you dont want to get warnings about unused parameters
>
> {$POP}
>
> (you can put the push at the top of the implementation part of a unit
> and you wont get warnings for the rest of that unit)
>
Originally I wanted to suggest this as well, but it does not allow you
to specifically select which parameters to ignore. Though this will
depend on whether the user wants to generally disable the message or
only disable for selected functions or specific parameters...
Regards,
Sven
More information about the Lazarus
mailing list