Hi Is it possible to enable and disable warning and hints receiving from compiler, but…
Darek Mazur wrote 5 lines
It is
{$HINTS ON}
and
{$WARNINGS ON}Michael.

Mailing lists / fpc-devel / 2004-09
5 messages · 4 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi Is it possible to enable and disable warning and hints receiving from compiler, but…
It is
{$HINTS ON}
and
{$WARNINGS ON}Michael.
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 TESTAPPI need this because I have include file with most uses modules, and I want exclude some of this hints.
Darek
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}
I found only HINT, but it seems not to be work (its off for whole program not only for module)
Darek
Its not work for me example: program testapp uses {$HINTS OFF} buttons {$HINTS ON} ; begin
From: Darek Mazur
To:
Subject: Re: [fpc-devel]Hints and Warning enabled and disabled Date sent: Wed, 22 Sep 2004 18:57:30 +0200
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
Exactly.
Just use hints off right before the final end.
program testapp
uses
classes,
buttons;begin
Writeln('test');
{$hints off}
end.