aboutsummaryrefslogtreecommitdiff
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
parentdaily update (diff)
downloadbinutils-gdb-9494d739022dc483721f8dc97e19085977e78b38.tar.gz
binutils-gdb-9494d739022dc483721f8dc97e19085977e78b38.tar.bz2
binutils-gdb-9494d739022dc483721f8dc97e19085977e78b38.zip
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 d845876b4b5..7e9616da2f9 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;
}