qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 00/15] GCC warning flags


From: Blue Swirl
Subject: Re: [Qemu-devel] [PATCH v3 00/15] GCC warning flags
Date: Sun, 19 Sep 2010 10:54:31 +0000

On Sun, Sep 19, 2010 at 9:52 AM, Andreas Färber <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]