[libvirt] [PATCH] build: avoid -Wno-format on new-enough gcc

Jiri Denemark jdenemar at redhat.com
Tue Oct 2 15:35:48 UTC 2012


On Tue, Oct 02, 2012 at 08:55:45 -0600, Eric Blake wrote:
> Commit c579d6b added a sledgehammer to silence spurious warnings from
> gcc 4.2, but in the process, it also silenced useful warnings from
> newer gcc (such as 4.4).  As a result, a bug slipped in to commit 0caccb58.
> 
> Tested with FreeBSD (gcc 4.2.1), RHEL 6.3 (gcc 4.4), and F17 (gcc 4.7.2).
> 
> * m4/virt-compile-warnings.m4 (-Wno-format): Probe for the actual
> spurious message, to once again allow gcc 4.4 to use -Wformat.
> ---
>  m4/virt-compile-warnings.m4 | 19 ++++++++++++++++++-
>  1 file changed, 18 insertions(+), 1 deletion(-)

ACK

Jirka




More information about the libvir-list mailing list