[Lazarus] What is {%H-}?
Henry Vermaak
henry.vermaak at gmail.com
Fri Apr 5 13:25:48 CEST 2013
On 5 April 2013 10:43, Alexander Klenin <klenin at gmail.com> wrote:
> On Fri, Apr 5, 2013 at 7:32 PM, Mattias Gaertner
> <nc-gaertnma at netcologne.de> wrote:
>>
>> This is independent of the IDE directive {%H-}. It only works on the file
>> position given by the compiler.
>>
>> Newer compilers might warn at different places within an expression, so
>> sometimes you have to add two {%H-}.
>
> I seriously dislike this solution, especially for the most frequent
> case of unused parameters --
> not only it is a hack, it also does not work while compiling from command line.
> I would much prefer either {$UNUSED var} compiler directive, or, failing that,
Agreed, this would be great.
Henry
More information about the Lazarus
mailing list