On Sun, Sep 19, 2010 at 9:52 AM, Andreas Färber <andreas.faer...@web.de> wrote:
> Hi Blue,
>
> Some of the warnings currently enabled are applicable only to C and
> Objective-C code, but gcc warns for C++:
>
> cc1plus: warning: command line option "-Wold-style-definition" is valid for
> C/ObjC but not for C++
> cc1plus: warning: command line option "-Wold-style-declaration" is valid for
> C/ObjC but not for C++
> cc1plus: warning: command line option "-Wnested-externs" is valid for C/ObjC
> but not for C++
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
> C/ObjC but not for C++
> cc1plus: warning: command line option "-Wmissing-prototypes" is valid for
> C/ObjC but not for C++
>
> Any idea how to handle this configure/rules.mak-wise? Split QEMU_CFLAGS into
> QEMU_CPPFLAGS and QEMU_CFLAGS/QEMU_CXXFLAGS?

That could work, but why would we care about C++ at all? For example,
we use 'new' as variable name.

Reply via email to