From 6f140a5f714ea84eb3fdc40d34b5bea08b3186b5 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 9 Apr 2010 22:49:53 +0200 Subject: [PATCH] sparc: Fix compiler warning (fprintf format string) When argument checking is enabled, gcc throws this error: error: format not a string literal and no format arguments The patch rewrites the statement to satisfy the compiler. Signed-off-by: Stefan Weil Signed-off-by: Aurelien Jarno --- sparc-dis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sparc-dis.c b/sparc-dis.c index 83a12ae..611e74f 100644 --- a/sparc-dis.c +++ b/sparc-dis.c @@ -2778,7 +2778,7 @@ print_insn_sparc (bfd_vma memaddr, disassemble_info *info) /* Can't do simple format if source and dest are different. */ continue; - (*info->fprintf_func) (stream, opcode->name); + (*info->fprintf_func) (stream, "%s", opcode->name); { const char *s; -- 2.7.4