qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1/9] build: disable Wstrict-prototypes


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH 1/9] build: disable Wstrict-prototypes
Date: Wed, 20 Feb 2013 14:27:31 +0000

On 20 February 2013 13:43, Anthony Liguori <address@hidden> wrote:
> GTK won't build with strict-prototypes due to gtkitemfactory.h:
>
>     /* We use () here to mean unspecified arguments. This is deprecated
>      * as of C99, but we can't change it without breaking compatibility.
>      * (Note that if we are included from a C++ program () will mean
>      * (void) so an explicit cast will be needed.)
>      */
>     typedef     void    (*GtkItemFactoryCallback)  ();

Yuck. Consider wrapping the use of this header with gcc diagnostic
pragmas instead so we don't have to drop a perfectly good warning
flag for the sake of busted libraries?

-- PMM



reply via email to

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