Mercurial > gnulib
diff lib/glob.in.h @ 37165:46132d5e6afa
glob: avoid -Wattribute warnings on glibc
Colin Watson reported that some versions of gcc warn about the use
of attribute((leaf)) on static functions, since it is documented to
have an effect only on external functions.
* lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
__THROWNL, not __THROW, on static functions.
* lib/glob.in.h (__THROW): Adjust...
(__THROWNL): ...accordingly.
Signed-off-by: Eric Blake <eblake@redhat.com>
author | Eric Blake <eblake@redhat.com> |
---|---|
date | Wed, 04 Sep 2013 17:06:35 -0600 |
parents | c741bc27922a |
children | 2e2aec5d51f2 |
line wrap: on
line diff
--- a/lib/glob.in.h Wed Aug 28 18:49:38 2013 -0700 +++ b/lib/glob.in.h Wed Sep 04 17:06:35 2013 -0600 @@ -40,8 +40,8 @@ # define __END_DECLS # endif #endif -#ifndef __THROW -# define __THROW +#ifndef __THROWNL +# define __THROWNL #endif /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */