summaryrefslogtreecommitdiff
path: root/lib/argp.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-12-18 17:59:33 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2012-12-18 18:00:09 -0800
commit37e3ad9a8077636cea173c1494c744e383962255 (patch)
tree9b1fdee3a1425ba3ebe3e69f575e5756508f6ef5 /lib/argp.h
parentb923b823d5e16f18ac4ae1b0a8f5c8a036231f8f (diff)
downloadgnulib-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.h')
-rw-r--r--lib/argp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/argp.h b/lib/argp.h
index c0c68a61e7..8a7654ae83 100644
--- a/lib/argp.h
+++ b/lib/argp.h
@@ -579,6 +579,10 @@ extern void *__argp_input (const struct argp *__restrict __argp,
# define __argp_state_help argp_state_help
# define __option_is_short _option_is_short
# define __option_is_end _option_is_end
+_GL_INLINE_HEADER_BEGIN
+# ifndef ARGP_EI
+# define ARGP_EI _GL_INLINE
+# endif
# endif
# ifndef ARGP_EI
@@ -635,6 +639,7 @@ __NTH (__option_is_end (const struct argp_option *__opt))
# undef __argp_state_help
# undef __option_is_short
# undef __option_is_end
+_GL_INLINE_HEADER_END
# endif
#endif /* Use extern inlines. */