Skip to content

Commit

Permalink
Fix compilation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
horacekj committed May 8, 2023
1 parent 4b96b2e commit 9d31b11
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/blocks/BlockRailway.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1170,8 +1170,6 @@ function TBlkRailwayTrain.SerializeForPanel(railway: TBlk; trainPredict: Boolean
if (blkRT.Train = Self.Train) and (blkRT.bpError) then
bpError := true;

var blk := Self.Train.front as TBlk;

if (trainPredict) then
fg := clYellow
else if (bpError) then
Expand Down
3 changes: 1 addition & 2 deletions src/blocks/BlockTurnout.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1685,9 +1685,8 @@ procedure TBlkTurnout.MapNpEvents();
procedure TBlkTurnout.MovingUPO(SenderPnl: TIDContext; SenderOR: TObject; UPO_OKCallback: TNotifyEvent;
UPO_EscCallback: TNotifyEvent);
var UPO: TUPOItems;
item: TUPOItem;
begin
UPO := TList<TUPOItem>.Create;
UPO := TList<TUPOItem>.Create();
try
if (Self.note <> '') then
UPO.Add(JCBarrierToMessage(JCBarrier(barBlockNote, Self)));
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/version.pas
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface
function LastBuildDate(): string;
function LastBuildTime(): string;

const _RELEASE: Boolean = false;
const _RELEASE: Boolean = true;

implementation

Expand Down

0 comments on commit 9d31b11

Please sign in to comment.