According to the fpc Programmers guide, local directives are restored to the default at the end of a unit or program.
I've found that this doesn't happen.
When in the appended source notes and hints are turned off for the unit, no notes and hints are generated for the main program either, when asking the compiler for hints and notes.
Compiler version: snapshot of 1.05, date: 2002/01/16
Is this as planned or is this indeed a bug?
Best wishes,
Marcel
-----
{$NOTES OFF}
{$HINTS OFF}
unit cdtest2;
interface
procedure test;
implementation
procedure test;
var
K: Byte;
begin
end;
end.
-----
program cdtest1;
uses
cdtest2;
var
J: Byte;
begin
end.
-----