aboutsummaryrefslogtreecommitdiff
path: root/opcodes/m32r-asm.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-04-04 10:09:52 +0000
committerNick Clifton <nickc@redhat.com>2005-04-04 10:09:52 +0000
commit9494d739022dc483721f8dc97e19085977e78b38 (patch)
treeab0458cf3254f57426398bacf8c126b7ae7abfd8 /opcodes/m32r-asm.c
parentec74bb7502cfb5316ad321f1ffbcc90cf6defc5b (diff)
downloadgdb-9494d739022dc483721f8dc97e19085977e78b38.zip
gdb-9494d739022dc483721f8dc97e19085977e78b38.tar.gz
gdb-9494d739022dc483721f8dc97e19085977e78b38.tar.bz2
Initialise value to zero to avoid a compile time warning.
Diffstat (limited to 'opcodes/m32r-asm.c')
-rw-r--r--opcodes/m32r-asm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/opcodes/m32r-asm.c b/opcodes/m32r-asm.c
index 8cfc5fd..1c0944a 100644
--- a/opcodes/m32r-asm.c
+++ b/opcodes/m32r-asm.c
@@ -255,21 +255,21 @@ m32r_cgen_parse_operand (cd, opindex, strp, fields)
break;
case M32R_OPERAND_DISP16 :
{
- bfd_vma value;
+ bfd_vma value = 0;
errmsg = cgen_parse_address (cd, strp, M32R_OPERAND_DISP16, 0, NULL, & value);
fields->f_disp16 = value;
}
break;
case M32R_OPERAND_DISP24 :
{
- bfd_vma value;
+ bfd_vma value = 0;
errmsg = cgen_parse_address (cd, strp, M32R_OPERAND_DISP24, 0, NULL, & value);
fields->f_disp24 = value;
}
break;
case M32R_OPERAND_DISP8 :
{
- bfd_vma value;
+ bfd_vma value = 0;
errmsg = cgen_parse_address (cd, strp, M32R_OPERAND_DISP8, 0, NULL, & value);
fields->f_disp8 = value;
}
@@ -312,7 +312,7 @@ m32r_cgen_parse_operand (cd, opindex, strp, fields)
break;
case M32R_OPERAND_UIMM24 :
{
- bfd_vma value;
+ bfd_vma value = 0;
errmsg = cgen_parse_address (cd, strp, M32R_OPERAND_UIMM24, 0, NULL, & value);
fields->f_uimm24 = value;
}