summaryrefslogtreecommitdiff
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
commit44741cd1ced49291eb6333aa63360926c60bbf67 (patch)
tree3b104bab5fa0b19efbe64929aeeac0490d930848 /opcodes/openrisc-asm.c
parent2b53a0565b640d35027f38cd96cb5f7c46e98335 (diff)
downloadgdb-44741cd1ced49291eb6333aa63360926c60bbf67.tar.gz
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;
}