packages/fcl-process/src/unix/process.inc has the following function:
Function TProcess.WaitOnExit : Boolean;
Var
R : Dword;
begin
if FRunning then
fexitcode:=waitprocess(handle);
Result:=(fexitcode>=0);
FRunning:=False;
end;
Variable
R is declared but never used.
The following patch removes it.
diff --git a/packages/fcl-process/src/unix/process.inc b/packages/fcl-process/src/unix/process.inc
index 442c68411b..d99fef48e9 100644
--- a/packages/fcl-process/src/unix/process.inc
+++ b/packages/fcl-process/src/unix/process.inc
@@ -455,9 +455,6 @@ procedure TProcess.CloseProcessHandles;
Function TProcess.WaitOnExit : Boolean;
-Var
- R : Dword;
-
begin
if FRunning then
fexitcode:=waitprocess(handle);