[Lazarus] What is {%H-}?
Alexander Klenin
klenin at gmail.com
Fri Apr 5 16:03:06 CEST 2013
On Sat, Apr 6, 2013 at 12:08 AM, Sven Barth <pascaldragon at googlemail.com> wrote:
> Am 05.04.2013 14:52, schrieb Kostas Michalopoulos:
>> {$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...
>
True. It is also much less readable.
--
Alexander S. Klenin
More information about the Lazarus
mailing list