compiler: cleanup - remove unused variables

git-svn-id: trunk@14493 -
This commit is contained in:
paul 2009-12-29 06:14:52 +00:00
parent 6b1f84087d
commit b084d70ae4
6 changed files with 4 additions and 9 deletions

View File

@ -2004,7 +2004,6 @@ implementation
def_to : tdef; def_to : tdef;
currpt, currpt,
pt : tcallparanode; pt : tcallparanode;
tmpeq,
eq : tequaltype; eq : tequaltype;
convtype : tconverttype; convtype : tconverttype;
pdtemp, pdtemp,

View File

@ -262,10 +262,9 @@ implementation
procedure tcgstringconstnode.pass_generate_code; procedure tcgstringconstnode.pass_generate_code;
var var
l1,
lastlabel : tasmlabel; lastlabel : tasmlabel;
pc : pchar; pc : pchar;
l,i : longint; l: longint;
href: treference; href: treference;
pooltype: TConstPoolType; pooltype: TConstPoolType;
pool: THashSet; pool: THashSet;

View File

@ -54,12 +54,9 @@ uses
procedure tcgobjcselectornode.pass_generate_code; procedure tcgobjcselectornode.pass_generate_code;
var var
reflab,
strlab : tasmlabel;
pool : THashSet; pool : THashSet;
entry : PHashSetItem; entry : PHashSetItem;
name : pshortstring; name : pshortstring;
pc : pchar;
begin begin
if current_asmdata.ConstPools[sp_varnamerefs]=nil then if current_asmdata.ConstPools[sp_varnamerefs]=nil then
current_asmdata.ConstPools[sp_varnamerefs]:=THashSet.Create(64, True, False); current_asmdata.ConstPools[sp_varnamerefs]:=THashSet.Create(64, True, False);

View File

@ -631,8 +631,10 @@ implementation
{ accesses } { accesses }
function node_complexity(p: tnode): cardinal; function node_complexity(p: tnode): cardinal;
var var
correction, correction: byte;
{$ifdef ARM}
dummy : byte; dummy : byte;
{$endif ARM}
begin begin
result := 0; result := 0;
while assigned(p) do while assigned(p) do

View File

@ -82,7 +82,6 @@ unit optbase;
procedure DFASetInclude(var s : tdfaset;e : integer); procedure DFASetInclude(var s : tdfaset;e : integer);
var var
i,
e8 : Integer; e8 : Integer;
begin begin
e8:=e div 8; e8:=e div 8;

View File

@ -208,7 +208,6 @@ implementation
procedure tunitwpoinfo.deref; procedure tunitwpoinfo.deref;
var var
i: longint; i: longint;
len: longint;
begin begin
if (init_settings.genwpoptimizerswitches=[]) then if (init_settings.genwpoptimizerswitches=[]) then