[fpc-devel] Howto hide Hint: Parameter "xxx" not used
Graeme Geldenhuys
graemeg.lists at gmail.com
Mon Sep 29 11:23:50 CEST 2008
On Mon, Sep 29, 2008 at 11:18 AM, <petr.kristan at epos.cz> wrote:
>
> Is there any posibility to hide compiler hint:
> Hint: Parameter "xxx" not used
I agree, it would be nice to suppress that hint! It's quite pointless,
99% of the time.
I have seen some code like the following, to suppress that hint, but
it's just a ugly hack as far as I'm concerned.
procedure TObj.OnEvent(Sender: TObject);
begin
Assert(Sender <> nil); // to get rid of compiler warning!
...
end;
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
More information about the fpc-devel
mailing list