diff options
author | Michael Eager <eager@eagercon.com> | 2013-03-12 15:19:23 +0000 |
---|---|---|
committer | Michael Eager <eager@eagercon.com> | 2013-03-12 15:19:23 +0000 |
commit | 314d60dd50709b6e572e066c8e2dd682f0640691 (patch) | |
tree | 68468df15e5ef0ebfd3c7552715e4f44ab391a81 /opcodes/mips-dis.c | |
parent | 9df7235c1a26e64a8edcd66813926d928494a180 (diff) | |
download | gdb-314d60dd50709b6e572e066c8e2dd682f0640691.zip gdb-314d60dd50709b6e572e066c8e2dd682f0640691.tar.gz gdb-314d60dd50709b6e572e066c8e2dd682f0640691.tar.bz2 |
Eliminate warning message.
* opcodes/mips-dis.c (print_insn_args): Modify def of reg.
Diffstat (limited to 'opcodes/mips-dis.c')
-rw-r--r-- | opcodes/mips-dis.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c index 9c9112b..018ac94 100644 --- a/opcodes/mips-dis.c +++ b/opcodes/mips-dis.c @@ -1273,7 +1273,9 @@ print_insn_args (const char *d, case 'U': { /* First check for both rd and rt being equal. */ - unsigned int reg = GET_OP (l, RD); + unsigned int reg; + + reg = GET_OP (l, RD); if (reg == GET_OP (l, RT)) infprintf (is, "%s", mips_gpr_names[reg]); else |