Skip to content

Commit

Permalink
Fix warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnlaan committed Nov 28, 2018
1 parent e758d6b commit ebfab63
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions Projects/Compile.pas
Original file line number Diff line number Diff line change
Expand Up @@ -9284,6 +9284,7 @@ function ISCompileScript(const Params: TCompileScriptParamsEx;
else begin
{ Bad option }
Result := isceInvalidParam;
Exit;
end;
end
else if StrLIComp(P, 'OutputDir=', Length('OutputDir=')) = 0 then begin
Expand Down
1 change: 0 additions & 1 deletion Projects/SimpleExpression.pas
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ function TSimpleExpression.FEvalIdentifier(const InLazyBranch: Boolean): Boolean
Name := FToken;
Next;

Result := False; { Silence compiler }
FillChar(Parameters, SizeOf(Parameters), 0);
try
if FParametersAllowed and (FTokenId = tiOpenRound) then begin
Expand Down
1 change: 0 additions & 1 deletion Projects/SpawnClient.pas
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ function CallSpawnServer(const CopyDataMsg: DWORD; var M: TMemoryStream;
InternalErrorFmt('CallSpawnServer: Unexpected response: $%x', [MsgResult]);
SequenceNumber := Word(MsgResult);

Status := 0; { avoid compiler warning }
LastQueryTime := GetTickCount;
repeat
ProcessMessagesProc;
Expand Down
1 change: 0 additions & 1 deletion Projects/Undo.pas
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,6 @@ class function TUninstallLog.ExtractRecData(const Rec: PUninstallRec;
for I := 0 to High(Data) do
Data[I] := '';
I := 0;
L := 0; { prevent warning }
X := @Rec^.Data;
while I <= High(Data) do begin
case X^ of
Expand Down

0 comments on commit ebfab63

Please sign in to comment.