[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH] Suppress warning: zero-length gnu_printf format
From: |
Blue Swirl |
Subject: |
[Qemu-devel] Re: [PATCH] Suppress warning: zero-length gnu_printf format string |
Date: |
Tue, 12 Oct 2010 17:35:37 +0000 |
On Mon, Oct 11, 2010 at 12:52 PM, Markus Armbruster <address@hidden> wrote:
> Warns about this line in check-qjson.c:
> QObject *obj = qobject_from_json("");
>
> The obvious fix (add -Wno-format-zero-length to gcc_flags) doesn't
> work, because -Wall switches it on again. Fix by putting configured
> flags last.
This would disable the flag globally. I'd rather disable the flag only
for check-qjson.o or more generically, remove -Werror for checks. For
example, there could be a check for how we handle invalid formats and
then the sources would contain format strings that annoy GCC, but we
wouldn't want warnings from that to stop the build.
- [Qemu-devel] [PATCH] Suppress warning: zero-length gnu_printf format string, Markus Armbruster, 2010/10/11
- [Qemu-devel] Re: [PATCH] Suppress warning: zero-length gnu_printf format string, Paolo Bonzini, 2010/10/11
- [Qemu-devel] Re: [PATCH] Suppress warning: zero-length gnu_printf format string,
Blue Swirl <=
- [Qemu-devel] Re: [PATCH] Suppress warning: zero-length gnu_printf format string, Markus Armbruster, 2010/10/13
- [Qemu-devel] Re: [PATCH] Suppress warning: zero-length gnu_printf format string, Markus Armbruster, 2010/10/14
- [Qemu-devel] Re: [PATCH] Suppress warning: zero-length gnu_printf format string, Blue Swirl, 2010/10/14
- [Qemu-devel] Re: [PATCH] Suppress warning: zero-length gnu_printf format string, Paolo Bonzini, 2010/10/14
- [Qemu-devel] Re: [PATCH] Suppress warning: zero-length gnu_printf format string, Blue Swirl, 2010/10/14
- [Qemu-devel] Re: [PATCH] Suppress warning: zero-length gnu_printf format string, Paolo Bonzini, 2010/10/14
- Re: [Qemu-devel] Re: [PATCH] Suppress warning: zero-length gnu_printf format string, Blue Swirl, 2010/10/15