a nicer workaroung is this

Assert(Sender <> nil);

as this will produce code only if assertion is turned on and this is not the case with production builds.

Geno Roupsky

2006/2/21, Tony Pelton <[EMAIL PROTECTED]>:
On 2/21/06, Andreas Berger <[EMAIL PROTECTED]> wrote:
> I know that this question should go to FPC, but since I am not on that
> mailing list I am hoping some kind soul will answer this here :-)
>
> When I compile a Lazarus project from the command line I get a HINT for
> every parameter not used in the method. This is ok if it is my method,
> but methods used by events must have these parameters to work. I know I
> can use the {$HINTS OFF} option to disable all hints, but that is not
> really a good idea. Is there any way to disable only that one specific hint?

not really what you are asking but ...

i've noted, in bits of sample source, that some people do :

if(Sender = Nil) Then ;

... at the top of the event procedure.

it took me a little while to realize why people were putting this into
their event procedures.

it seems strange to me to inject extra ops into your code to avoid a
compiler "hint" ... but what do i know.

>
> Regards,
> Andreas

Tony

--
X-SA user ? 0.4 is out !
http://x-plane.dsrts.com
http://games.groups.yahoo.com/group/x-plane-foo/

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to