[fpc-devel]Hints and Warning enabled and disabled

Tomas Hajny XHajT03 at mbox.vol.cz
Wed Sep 22 20:30:49 CEST 2004


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?

Tomas





More information about the fpc-devel mailing list