[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/5] stat-time: use extern-inline
From: |
Paul Eggert |
Subject: |
Re: [PATCH 2/5] stat-time: use extern-inline |
Date: |
Tue, 14 Aug 2012 19:01:45 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0 |
On 08/14/2012 02:14 PM, Eric Blake wrote:
> It would mean
> every client of our static inline macros would have to declare
> independently from the implementation, if they are worried about
> warning-free compilation on older gcc versions.
It'd be a real hassle to declare every inline function twice,
just to pacify older GCCs. (When this issue comes up with Emacs,
the usual advice is "don't use --enable-gcc-warnings if your
GCC is older than the latest version".)
> I'm having a tough time
> figuring out how to conditionally disable a particular warning (I want
> the -Wmissing-prototypes warning with newer gcc, just not when
> targetting an older gcc that can't push and pop warning levels).
Since it's just GCC, can you use "gcc --version" to decide whether
to use -Wmissing-prototypes?