[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PSPP-BUG: PATCH: numerous warnings from gnulib header files.
From: |
Eric Blake |
Subject: |
Re: PSPP-BUG: PATCH: numerous warnings from gnulib header files. |
Date: |
Thu, 07 Feb 2013 06:01:27 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
On 02/06/2013 11:14 PM, Paul Eggert wrote:
> In <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00019.html>
> on 02/06/2013 12:13 AM, John Darrington wrote:
>
>> ./SOURCE/gl/xalloc.h:176: error: no previous prototype for 'x2nrealloc'
>
> I looked into this, and apparently it's a bug in GCC 4.4.5.
> The bug causes GCC to generate a bogus warning if one
> compiles with '-Wmissing-prototypes' and if a program
> contains an inline function that is not static.
>
> Gnulib's general rule is to cater to GCC non-default compiler warnings
> only for the latest stable version of GCC, since older GCCs are
> fairly buggy in this area, and it's too much hassle to try
> to pacify them all.
Indeed, at least libvirt and coreutils are both using conditional
warnings, where certain warnings are only turned on for new-enough gcc.
Maybe I should revisit the manywarnings module to hoist that logic up
into gnulib, instead of making each downstream project reinvent it. The
question has come up in the past, though:
https://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00006.html
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature