aboutsummaryrefslogtreecommitdiff
path: root/opcodes/tic54x-dis.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-02-18 17:13:04 +0000
committerNick Clifton <nickc@redhat.com>2009-02-18 17:13:04 +0000
commit137f2437e04f733cae1120d032c7a1b24aef54af (patch)
tree40ad037360c4c0f22a6ed569d5981774d3dee864 /opcodes/tic54x-dis.c
parent90d8a22ca2f2b04b42c5049d54d32e54081b74b4 (diff)
downloadgdb-137f2437e04f733cae1120d032c7a1b24aef54af.zip
gdb-137f2437e04f733cae1120d032c7a1b24aef54af.tar.gz
gdb-137f2437e04f733cae1120d032c7a1b24aef54af.tar.bz2
* fr30-opc.c: Regenerate.
* frv-opc.c: Regenerate. * ip2k-opc.c: Regenerate. * iq2000-opc.c: Regenerate. * lm32-opc.c: Regenerate. * m32c-opc.c: Regenerate. * m32r-opc.c: Regenerate. * mep-opc.c: Regenerate. * mt-opc.c: Regenerate. * xc16x-opc.c: Regenerate. * xstormy16-opc.c: Regenerate. * tic54x-dis.c (print_instruction): Avoid compiler warning on sprintf call. * opc-itab.scm (<>_cgen_init_opcode_table): Avoid compiler warning about calling memset with a zero length.
Diffstat (limited to 'opcodes/tic54x-dis.c')
-rw-r--r--opcodes/tic54x-dis.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/opcodes/tic54x-dis.c b/opcodes/tic54x-dis.c
index 0b92f90..0b6e7b4 100644
--- a/opcodes/tic54x-dis.c
+++ b/opcodes/tic54x-dis.c
@@ -380,7 +380,10 @@ print_instruction (info, memaddr, opcode, tm_name, tm_operands, size, ext)
case OP_CC3:
{
const char *code[] = { "eq", "lt", "gt", "neq" };
- sprintf (operand[i], code[CC3 (opcode)]);
+
+ /* Do not use sprintf with only two parameters as a
+ compiler warning could be generated in such conditions. */
+ sprintf (operand[i], "%s", code[CC3 (opcode)]);
info->fprintf_func (info->stream, "%s%s", comma, operand[i]);
break;
}