diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-12-18 17:59:33 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-12-18 18:00:09 -0800 |
commit | 37e3ad9a8077636cea173c1494c744e383962255 (patch) | |
tree | 9b1fdee3a1425ba3ebe3e69f575e5756508f6ef5 /lib/argp-fmtstream.h | |
parent | b923b823d5e16f18ac4ae1b0a8f5c8a036231f8f (diff) | |
download | gnulib-37e3ad9a8077636cea173c1494c744e383962255.tar.gz |
argp: better 'inline'
Use extern-inline module to declare extern inline functions.
This avoids some bogus warning diagnostics. Problem discovered
when modifying GNU tar to use the manywarnings module.
* lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
* lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
Define based on extern-inline.
* modules/argp (Depends-on): Add extern-inline.
Diffstat (limited to 'lib/argp-fmtstream.h')
-rw-r--r-- | lib/argp-fmtstream.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/argp-fmtstream.h b/lib/argp-fmtstream.h index a891c3dc0b..3de0979eb2 100644 --- a/lib/argp-fmtstream.h +++ b/lib/argp-fmtstream.h @@ -197,6 +197,10 @@ extern int __argp_fmtstream_ensure (argp_fmtstream_t __fs, size_t __amount); #define __argp_fmtstream_point argp_fmtstream_point #define __argp_fmtstream_update _argp_fmtstream_update #define __argp_fmtstream_ensure _argp_fmtstream_ensure +_GL_INLINE_HEADER_BEGIN +#ifndef ARGP_FS_EI +# define ARGP_FS_EI _GL_INLINE +#endif #endif #ifndef ARGP_FS_EI @@ -345,6 +349,7 @@ __argp_fmtstream_point (argp_fmtstream_t __fs) #undef __argp_fmtstream_point #undef __argp_fmtstream_update #undef __argp_fmtstream_ensure +_GL_INLINE_HEADER_END #endif #endif /* __OPTIMIZE__ */ |