[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/9] build: disable Wstrict-prototypes
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [PATCH 1/9] build: disable Wstrict-prototypes |
Date: |
Wed, 20 Feb 2013 16:40:15 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2 |
Am 20.02.2013 15:27, schrieb Peter Maydell:
> 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?
+1, same thought here. Would GCC diagnostics work for clang though?
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
- [Qemu-devel] [PATCH 0/9] Add GTK UI to enable basic accessibility (v5), Anthony Liguori, 2013/02/20
- [Qemu-devel] [PATCH 1/9] build: disable Wstrict-prototypes, Anthony Liguori, 2013/02/20
- [Qemu-devel] [PATCH 4/9] gtk: add virtual console support (v2), Anthony Liguori, 2013/02/20
- [Qemu-devel] [PATCH 2/9] console: allow VCs to be overridden by UI, Anthony Liguori, 2013/02/20
- [Qemu-devel] [PATCH 5/9] gtk: add support for input grabbing (v2), Anthony Liguori, 2013/02/20
- [Qemu-devel] [PATCH 6/9] gtk: add support for screen scaling and full screen (v5), Anthony Liguori, 2013/02/20
- [Qemu-devel] [PATCH 3/9] ui: add basic GTK gui (v5), Anthony Liguori, 2013/02/20
- [Qemu-devel] [PATCH 7/9] gtk: add translation sup port (v5), Anthony Liguori, 2013/02/20