Re: extern inline problem with argp when building tar 1.19 with GCC 4.2.1

2007-10-13 Thread Bruno Haible
Addendum to last patch: When __GNUC_STDC_INLINE__ is defined, we know that the compiler supports both the ISO C99 and the old GNU C semantics for 'inline'. In ten years, people will wonder "what was this old GNU C semantics". So it's better to use the ISO C99 semantics for the long-term use. 2007-

Re: extern inline problem with argp when building tar 1.19 with GCC 4.2.1

2007-10-13 Thread Bruno Haible
Hi Paul, > 2007-10-12 Paul Eggert <[EMAIL PROTECTED]> > > * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic > "warning: C99 inline functions are not supported; using GNU89". This does not fix all warnings. I still get these warnings (on SuSE Linux 9.0, gcc 4.2.1

extern inline problem with argp when building tar 1.19 with GCC 4.2.1

2007-10-12 Thread Paul Eggert
This was Solaris 8 (sparc), though I doubt that matters. Here's the behavior I observed: depbase=`echo argp-fmtstream.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -m64 -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT argp-fmtstream.o -MD -MP -MF $depbase.Tpo -c -o argp-f