Re: [Qemu-devel] [PATCH] configure: Make C++ test work with --enable-werror

2014-02-25 Thread Andreas Färber
Am 24.02.2014 20:08, schrieb Peter Maydell: gcc's C++ compiler complains about being passed some -W options which make sense for C but not for C++. This means we mustn't try a C++ compile with QEMU_CFLAGS, but only with a filtered version that removes the offending options. This filtering was

Re: [Qemu-devel] [PATCH] configure: Make C++ test work with --enable-werror

2014-02-25 Thread Peter Maydell
On 24 February 2014 19:08, Peter Maydell peter.mayd...@linaro.org wrote: gcc's C++ compiler complains about being passed some -W options which make sense for C but not for C++. This means we mustn't try a C++ compile with QEMU_CFLAGS, but only with a filtered version that removes the offending

[Qemu-devel] [PATCH] configure: Make C++ test work with --enable-werror

2014-02-24 Thread Peter Maydell
gcc's C++ compiler complains about being passed some -W options which make sense for C but not for C++. This means we mustn't try a C++ compile with QEMU_CFLAGS, but only with a filtered version that removes the offending options. This filtering was already being done for uses of C++ in the build

Re: [Qemu-devel] [PATCH] configure: Make C++ test work with --enable-werror

2014-02-24 Thread Thomas Huth
On Mon, 24 Feb 2014 19:08:18 + Peter Maydell peter.mayd...@linaro.org wrote: gcc's C++ compiler complains about being passed some -W options which make sense for C but not for C++. This means we mustn't try a C++ compile with QEMU_CFLAGS, but only with a filtered version that removes the