mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 08:09:18 +02:00
Fix several warnings about uninitialized local variables
git-svn-id: trunk@45787 -
This commit is contained in:
parent
0e9fc31dd7
commit
dfdfbf896d
@ -625,6 +625,7 @@ implementation
|
|||||||
c: Char;
|
c: Char;
|
||||||
begin
|
begin
|
||||||
s:='';
|
s:='';
|
||||||
|
c:=#0;
|
||||||
if AtEoF then
|
if AtEoF then
|
||||||
begin
|
begin
|
||||||
result:=false;
|
result:=false;
|
||||||
@ -930,6 +931,8 @@ implementation
|
|||||||
FReader:=AReader;
|
FReader:=AReader;
|
||||||
InputFileName:=AReader.FileName;
|
InputFileName:=AReader.FileName;
|
||||||
Data:=CObjData.Create(InputFileName);
|
Data:=CObjData.Create(InputFileName);
|
||||||
|
ExpectedAreas:=-1;
|
||||||
|
ExpectedSymbols:=-1;
|
||||||
result:=false;
|
result:=false;
|
||||||
s:='';
|
s:='';
|
||||||
repeat
|
repeat
|
||||||
|
@ -675,6 +675,7 @@ implementation
|
|||||||
var
|
var
|
||||||
i: Integer;
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
|
result:=0;
|
||||||
case maskcode of
|
case maskcode of
|
||||||
'dd':
|
'dd':
|
||||||
for i:=0 to insentry^.ops-1 do
|
for i:=0 to insentry^.ops-1 do
|
||||||
|
@ -921,6 +921,7 @@ unit cgcpu;
|
|||||||
optimize_op_const(size,op,a);
|
optimize_op_const(size,op,a);
|
||||||
mask:=$ff;
|
mask:=$ff;
|
||||||
shift:=0;
|
shift:=0;
|
||||||
|
l1:=nil;
|
||||||
case op of
|
case op of
|
||||||
OP_NONE:
|
OP_NONE:
|
||||||
begin
|
begin
|
||||||
@ -1711,6 +1712,7 @@ unit cgcpu;
|
|||||||
i : byte;
|
i : byte;
|
||||||
tmpl: TAsmLabel;
|
tmpl: TAsmLabel;
|
||||||
begin
|
begin
|
||||||
|
tmpl:=nil;
|
||||||
if size in [OS_8,OS_S8]then
|
if size in [OS_8,OS_S8]then
|
||||||
begin
|
begin
|
||||||
if cmp_op in [OC_EQ,OC_NE,OC_B,OC_AE] then
|
if cmp_op in [OC_EQ,OC_NE,OC_B,OC_AE] then
|
||||||
|
Loading…
Reference in New Issue
Block a user