* ada-lang.c (ada_index_type): Make static. Add NAME argument.
[deliverable/binutils-gdb.git] / opcodes / tic54x-dis.c
index 0b92f907fc55e9f2c9ec857eb5c249a0da395aee..0b6e7b479f3c03231d01197f8aeb05db7aa17547 100644 (file)
@@ -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;
         }
This page took 0.023282 seconds and 4 git commands to generate.