From d18226c7e6336620b316bf7ee15e13bea366776f Mon Sep 17 00:00:00 2001 From: dmitry Date: Fri, 4 Dec 2009 22:18:48 +0000 Subject: [PATCH] fix for 15243. compiler messages are now to the option's CreateDiff git-svn-id: trunk@22970 - --- ide/compileroptions.pp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/ide/compileroptions.pp b/ide/compileroptions.pp index 6614daf027..3e9b072e08 100644 --- a/ide/compileroptions.pp +++ b/ide/compileroptions.pp @@ -3057,7 +3057,8 @@ procedure TBaseCompilerOptions.CreateDiff(CompOpts: TBaseCompilerOptions; if Old=New then exit; Tool.AddDiffItem(PropertyName,CompilationExecutableTypeNames[New]); end; - +var + i: Integer; begin Tool.AddPathsDiff('StorePathDelim',PathDelimSwitchToDelim[FStorePathDelim], PathDelimSwitchToDelim[CompOpts.FStorePathDelim]); @@ -3124,8 +3125,8 @@ begin Tool.AddDiff('Win32GraphicApp',FWin32GraphicApp,CompOpts.FWin32GraphicApp); AddDiff('ExecutableType',FExecutableType,CompOpts.FExecutableType); - // messages - Tool.Path:='Messages'; + // verbosity + Tool.Path:='Verbosity'; Tool.AddDiff('ShowErrors',fShowErrors,CompOpts.fShowErrors); Tool.AddDiff('ShowWarn',fShowWarn,CompOpts.fShowWarn); Tool.AddDiff('ShowNotes',fShowNotes,CompOpts.fShowNotes); @@ -3147,6 +3148,15 @@ begin Tool.AddDiff('ShowHintsForSenderNotUsed',fShowHintsForSenderNotUsed,CompOpts.fShowHintsForSenderNotUsed); Tool.AddDiff('WriteFPCLogo',fWriteFPCLogo,CompOpts.fWriteFPCLogo); + //messages + Tool.Path:='Messages'; + Tool.AddDiff('UseCustomMessages',fUseCustomMessages,CompOpts.fUseCustomMessages); + Tool.AddDiff('UseMsgFile',fUseMsgFile,CompOpts.fUseMsgFile); + Tool.AddDiff('MsgFileName',fMsgFileName,CompOpts.fMsgFileName); + for i:=0 to fCompilerMessages.Count-1 do + Tool.AddDiff('Ignored'+IntToStr(fCompilerMessages.Msg[i].MsgIndex), + fCompilerMessages.Msg[i].Ignored,CompOpts.fCompilerMessages.Msg[i].Ignored); + // other Tool.Path:='Other'; Tool.AddDiff('DontUseConfigFile',fDontUseConfigFile,CompOpts.fDontUseConfigFile);