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?

Reply via email to