]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: make broken -Wlogical-op test be gcc-only
authorEric Blake <eblake@redhat.com>
Wed, 19 Dec 2012 19:07:39 +0000 (12:07 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 19 Dec 2012 19:21:09 +0000 (12:21 -0700)
commit6e148567fd93ae4a29692f98258059baff4855d2
treedfc38d904f8d26b263191b0fda9d13e8dd143a38
parent2b9c1b1b3456368b9fd50cccfdb311586568a2f6
build: make broken -Wlogical-op test be gcc-only

Commit 8b8fcdea introduced a check for broken gcc -Wlogical-op,
but did not guard the check against non-gcc compilers, which might
lead to spurious failures when another compiler encounters an
unknown pragma.  Additionally, all of our compiler warning logic
should belong in a single file, and use cache variables to allow
overriding the decision at configure time if necessary.

* configure.ac (BROKEN_GCC_WLOGICALOP): Move...
* m4/virt-compile-warnings.m4 (LIBVIRT_COMPILE_WARNINGS): ...here,
and update to modern autoconf idioms.
configure.ac
m4/virt-compile-warnings.m4