mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 12:39:29 +02:00
IDE: fpc msg parser: options for hiding sender not used
git-svn-id: trunk@45145 -
This commit is contained in:
parent
164c12f8ca
commit
1d9a869c1e
@ -326,7 +326,10 @@ begin
|
||||
Tool.CmdLineParams:=CmdLine;
|
||||
Tool.Process.CurrentDirectory:=WorkingDir;
|
||||
FPCParser:=TFPCParser(Tool.AddParsers(SubToolFPC));
|
||||
if AProject.MainFilename<>'' then
|
||||
FPCParser.HideHintsSenderNotUsed:=not AProject.CompilerOptions.ShowHintsForSenderNotUsed;
|
||||
FPCParser.HideHintsUnitNotUsedInMainSource:=not AProject.CompilerOptions.ShowHintsForUnusedUnitsInMainSrc;
|
||||
if AProject.CompilerOptions.ShowHintsForUnusedUnitsInMainSrc
|
||||
and (AProject.MainFilename<>'') then
|
||||
FPCParser.FilesToIgnoreUnitNotUsed.Add(AProject.MainFilename);
|
||||
Tool.AddParsers(SubToolMake);
|
||||
Tool.Execute;
|
||||
|
@ -3526,6 +3526,7 @@ begin
|
||||
and (APackage.CompilerOptions.ShowHintsForUnusedUnitsInMainSrc) then
|
||||
FPCParser.FilesToIgnoreUnitNotUsed.Add(APackage.MainUnit.Filename);
|
||||
FPCParser.HideHintsSenderNotUsed:=not APackage.CompilerOptions.ShowHintsForSenderNotUsed;
|
||||
FPCParser.HideHintsUnitNotUsedInMainSource:=not APackage.CompilerOptions.ShowHintsForUnusedUnitsInMainSrc;
|
||||
PkgCompileTool.AddParsers(SubToolMake);
|
||||
PkgCompileTool.Process.CurrentDirectory:=APackage.Directory;
|
||||
PkgCompileTool.Process.Executable:=CompilerFilename;
|
||||
|
Loading…
Reference in New Issue
Block a user