From b5cd9c048ef30dac838a4eda6efeeec7741ac4d2 Mon Sep 17 00:00:00 2001 From: Jeppe Johansen Date: Thu, 11 Dec 2014 09:26:48 +0000 Subject: [PATCH] Small fix for uninitialized variables causing warnings. git-svn-id: branches/laksen/armiw@29253 - --- compiler/arm/aasmcpu.pas | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/compiler/arm/aasmcpu.pas b/compiler/arm/aasmcpu.pas index 64cf10e55d..ef1613f23e 100644 --- a/compiler/arm/aasmcpu.pas +++ b/compiler/arm/aasmcpu.pas @@ -3094,6 +3094,10 @@ implementation bytes:=bytes or ord(insentry^.code[4]); { set regs } + Rd:=0; + Rn:=0; + Rm:=0; + case oppostfix of PF_None: begin @@ -3219,6 +3223,7 @@ implementation NR_MVFR0: Rn:=$7; NR_FPEXC: Rn:=$8; else + Rn:=0; message(asmw_e_invalid_opcode_and_operands); end; @@ -3236,6 +3241,7 @@ implementation NR_FPSCR: Rn:=$1; NR_FPEXC: Rn:=$8; else + Rn:=0; message(asmw_e_invalid_opcode_and_operands); end; @@ -3417,6 +3423,7 @@ implementation rn:=16; end; else + Rn:=0; message(asmw_e_invalid_opcode_and_operands); end; @@ -3499,6 +3506,7 @@ implementation if oper[1]^.regset^=[] then message1(asmw_e_invalid_opcode_and_operands, 'Regset cannot be empty'); + rd:=0; for r:=0 to 31 do if r in oper[1]^.regset^ then begin @@ -3537,6 +3545,7 @@ implementation if oper[0]^.regset^=[] then message1(asmw_e_invalid_opcode_and_operands, 'Regset cannot be empty'); + rd:=0; for r:=0 to 31 do if r in oper[0]^.regset^ then begin