* [Qemu-devel] [PATCH] Fix gcc warning 'format not a string literal and no format arguments'
@ 2010-03-19 11:11 Shahar Havivi
2010-03-19 12:29 ` Markus Armbruster
0 siblings, 1 reply; 2+ messages in thread
From: Shahar Havivi @ 2010-03-19 11:11 UTC (permalink / raw)
To: qemu-devel
gcc 4.4.1 produce a warning 'format not a string literal and no format
arguments'
Signed-off-by: Shahar Havivi <shaharh@redhat.com>
---
qemu-error.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/qemu-error.c b/qemu-error.c
index 5d5fe37..14ec14f 100644
--- a/qemu-error.c
+++ b/qemu-error.c
@@ -188,7 +188,7 @@ void error_print_loc(void)
error_printf(" ");
break;
default:
- error_printf(sep);
+ error_printf("%s", sep);
}
}
--
1.6.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] Fix gcc warning 'format not a string literal and no format arguments'
2010-03-19 11:11 [Qemu-devel] [PATCH] Fix gcc warning 'format not a string literal and no format arguments' Shahar Havivi
@ 2010-03-19 12:29 ` Markus Armbruster
0 siblings, 0 replies; 2+ messages in thread
From: Markus Armbruster @ 2010-03-19 12:29 UTC (permalink / raw)
To: Shahar Havivi; +Cc: qemu-devel
Shahar Havivi <shaharh@redhat.com> writes:
> gcc 4.4.1 produce a warning 'format not a string literal and no format
> arguments'
>
> Signed-off-by: Shahar Havivi <shaharh@redhat.com>
> ---
> qemu-error.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/qemu-error.c b/qemu-error.c
> index 5d5fe37..14ec14f 100644
> --- a/qemu-error.c
> +++ b/qemu-error.c
> @@ -188,7 +188,7 @@ void error_print_loc(void)
> error_printf(" ");
> break;
> default:
> - error_printf(sep);
> + error_printf("%s", sep);
> }
> }
Fair enough.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-19 12:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-19 11:11 [Qemu-devel] [PATCH] Fix gcc warning 'format not a string literal and no format arguments' Shahar Havivi
2010-03-19 12:29 ` Markus Armbruster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).