]> git.proxmox.com Git - mirror_qemu.git/commit - coroutine-ucontext.c
configure: Split valgrind test into pragma test and valgrind.h test
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 30 Jul 2012 15:13:07 +0000 (16:13 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Tue, 31 Jul 2012 20:04:42 +0000 (20:04 +0000)
commit06d71fa1487fdef03e713b9e1aed50f7dceff27b
tree28176f7ef48ed3d24b6abe7311b1e34bce9d348a
parent5e3bc7144edd6e4fa2824944e5eb16c28197dd5a
configure: Split valgrind test into pragma test and valgrind.h test

Split the configure test that checks for valgrind into two, one
part checking whether we have the gcc pragma to disable unused-but-set
variables, and the other part checking for the existence of valgrind.h.
The first of these has to be compiled with -Werror and the second
does not and shouldn't generate any warnings.

This (a) allows us to enable "make errors in configure tests be
build failures" and (b) enables use of valgrind on systems with
a gcc which doesn't know about -Wunused-but-set-varibale, like
Debian squeeze.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure
coroutine-ucontext.c