Re: [Qemu-devel] [PATCH v2] configure: fix double check tests with Clang

2012-08-11 Thread Blue Swirl
On Sat, Aug 11, 2012 at 5:44 PM, Peter Maydell wrote: > On 11 August 2012 16:11, Blue Swirl wrote: >> Configuring with Clang compiler with -Werror would not work after >> improved checks: >> /tmp/qemu-conf--25992-.c:4:32: error: self-comparison always evaluates >> to true [-Werror,-Wtautological-

Re: [Qemu-devel] [PATCH v2] configure: fix double check tests with Clang

2012-08-11 Thread Peter Maydell
On 11 August 2012 16:11, Blue Swirl wrote: > Configuring with Clang compiler with -Werror would not work after > improved checks: > /tmp/qemu-conf--25992-.c:4:32: error: self-comparison always evaluates > to true [-Werror,-Wtautological-compare] > int main(void) { return preadv == preadv; } > /tmp

[Qemu-devel] [PATCH v2] configure: fix double check tests with Clang

2012-08-11 Thread Blue Swirl
Configuring with Clang compiler with -Werror would not work after improved checks: /tmp/qemu-conf--25992-.c:4:32: error: self-comparison always evaluates to true [-Werror,-Wtautological-compare] int main(void) { return preadv == preadv; } /tmp/qemu-conf--25992-.c:13:26: error: self-comparison alway