Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can specific Delphi hints be disabled?

In Delphi, you can use compiler directives to disable specific warnings, such as

{$WARN USE_BEFORE_DEF OFF}

But when I tried to do that with a specific hint, whose underscore_style_name I got out of the helpfile, the compiler said it doesn't know what {$HINT} is. So is there any way to do this?

like image 803
Mason Wheeler Avatar asked Jan 14 '09 19:01

Mason Wheeler


1 Answers

No specific hints, but you can disable them all.

{$HINTS OFF}
procedure MyProc;
var
  i : integer;
begin
  DoSomething;
end;
{$HINTS ON}
like image 123
Lars Truijens Avatar answered Sep 30 '22 02:09

Lars Truijens