]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
build: avoid -Wno-format on new-enough gcc
authorEric Blake <eblake@redhat.com>
Tue, 2 Oct 2012 14:37:00 +0000 (08:37 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 2 Oct 2012 15:48:23 +0000 (09:48 -0600)
commit814a8deaa1529e1bc09b5c38e6cd625f9c2fed6b
tree8831f0bc4a100ec2b1aaabce684b57db7c5c97db
parent2b804cfafcd52c16d15534367e64648034346266
build: avoid -Wno-format on new-enough gcc

Commit c579d6b added a sledgehammer to silence spurious warnings from
gcc 4.2, but in the process, it also silenced useful warnings from
gcc 4.3 through 4.5.  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),
where the former didn't trip on spurious warnings, and where the latter
two detected a revert of 2b804cf.

* 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