[fpc-devel]Hints and Warning enabled and disabled
Michael.VanCanneyt at Wisa.be
Michael.VanCanneyt at Wisa.be
Wed Sep 22 21:17:00 CEST 2004
On Wed, 22 Sep 2004, Tomas Hajny wrote:
> From: Darek Mazur <darekm at emadar.com>
> To: fpc-devel at lists.freepascal.org
> Subject: Re: [fpc-devel]Hints and Warning enabled and disabled
> Date sent: Wed, 22 Sep 2004 18:57:30 +0200
>
> > U¿ytkownik Michael Van Canneyt napisa³:
> > >
> > > On Wed, 22 Sep 2004, Darek Mazur wrote:
> > >
> > >>Hi
> > >>Is it possible to enable and disable warning and hints receiving
> > >>from compiler, but not in command line only in directives in program
> > >>like {$HINT ON}{$HINT OFF}
> > >
> > > It is
> > > {$HINTS ON}
> >
> > Its not work for me
> > example:
> >
> > program testapp
> >
> > uses
> > classes,
> > {$HINTS OFF}
> > buttons
> > {$HINTS ON}
> > ;
> >
> >
> > begin
> > writeln('test');
> > end.
> >
> > Compiler hint
> > testapp.pp(11,7) Hint: Unit "BUTTONS" not used in TESTAPP
>
> It looks OK to me - the listed hint is only issued at the end of
> testapp.pp parsing, and hints are turned on at that place?
Exactly.
Just use hints off right before the final end.
program testapp
uses
classes,
buttons;
begin
Writeln('test');
{$hints off}
end.
More information about the fpc-devel
mailing list