[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] sparc: Fix compiler warning (fprintf format str
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH] sparc: Fix compiler warning (fprintf format string) |
Date: |
Wed, 14 Apr 2010 00:17:21 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Fri, Apr 09, 2010 at 10:49:53PM +0200, Stefan Weil wrote:
> 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 <address@hidden>
Thanks, applied.
> ---
> sparc-dis.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> 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;
> --
> 1.5.6.5
>
>
>
>
--
Aurelien Jarno GPG: 1024D/F1BCDB73
address@hidden http://www.aurel32.net
- [Qemu-devel] [PATCH] microblaze: Fix two format specifiers in disassembler, Stefan Weil, 2010/04/09
- [Qemu-devel] [PATCH] m68k: Fix compiler warning (fprintf format string), Stefan Weil, 2010/04/09
- [Qemu-devel] [PATCH] sh4: Fix compiler warning (fprintf format string), Stefan Weil, 2010/04/09
- [Qemu-devel] [PATCH] sparc: Fix compiler warning (fprintf format string), Stefan Weil, 2010/04/09
- Re: [Qemu-devel] [PATCH] sparc: Fix compiler warning (fprintf format string),
Aurelien Jarno <=
- [Qemu-devel] [PATCH] arm: Fix compiler warning (fprintf format string), Stefan Weil, 2010/04/09
- Re: [Qemu-devel] [PATCH] microblaze: Fix two format specifiers in disassembler, Thomas Monjalon, 2010/04/10