aboutsummaryrefslogtreecommitdiff
path: root/opcodes/openrisc-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/openrisc-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/openrisc-asm.c')
-rw-r--r--opcodes/openrisc-asm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/openrisc-asm.c b/opcodes/openrisc-asm.c
index d845876..7e9616d 100644
--- a/opcodes/openrisc-asm.c
+++ b/opcodes/openrisc-asm.c
@@ -201,14 +201,14 @@ openrisc_cgen_parse_operand (cd, opindex, strp, fields)
{
case OPENRISC_OPERAND_ABS_26 :
{
- bfd_vma value;
+ bfd_vma value = 0;
errmsg = cgen_parse_address (cd, strp, OPENRISC_OPERAND_ABS_26, 0, NULL, & value);
fields->f_abs26 = value;
}
break;
case OPENRISC_OPERAND_DISP_26 :
{
- bfd_vma value;
+ bfd_vma value = 0;
errmsg = cgen_parse_address (cd, strp, OPENRISC_OPERAND_DISP_26, 0, NULL, & value);
fields->f_disp26 = value;
}