glob: avoid -Wattribute warnings on glibc
authorEric Blake <eblake@redhat.com>
Wed, 4 Sep 2013 23:06:35 +0000 (17:06 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 4 Sep 2013 23:06:35 +0000 (17:06 -0600)
commitb9ad0444e2776f44c7290752b87a7deab0fefb78
tree04e15f491a6de4addfed3ea65c70be881abd5fc4
parentece81a73b64483a68f5157420836d84beb3a1680
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>
ChangeLog
lib/glob.c
lib/glob.in.h