summaryrefslogtreecommitdiff
path: root/lib/glob.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2013-09-04 17:06:35 -0600
committerEric Blake <eblake@redhat.com>2013-09-04 17:06:35 -0600
commitb9ad0444e2776f44c7290752b87a7deab0fefb78 (patch)
tree04e15f491a6de4addfed3ea65c70be881abd5fc4 /lib/glob.c
parentece81a73b64483a68f5157420836d84beb3a1680 (diff)
downloadgnulib-b9ad0444e2776f44c7290752b87a7deab0fefb78.tar.gz
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>
Diffstat (limited to 'lib/glob.c')
-rw-r--r--lib/glob.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/glob.c b/lib/glob.c
index bf90a00450..7ec066fbee 100644
--- a/lib/glob.c
+++ b/lib/glob.c
@@ -162,7 +162,7 @@
# define GET_LOGIN_NAME_MAX() (-1)
#endif
-static const char *next_brace_sub (const char *begin, int flags) __THROW;
+static const char *next_brace_sub (const char *begin, int flags) __THROWNL;
#endif /* !defined _LIBC || !defined GLOB_ONLY_P */
@@ -210,8 +210,8 @@ extern int __glob_pattern_type (const char *pattern, int quote)
attribute_hidden;
#if !defined _LIBC || !defined GLOB_ONLY_P
-static int prefix_array (const char *prefix, char **array, size_t n) __THROW;
-static int collated_compare (const void *, const void *) __THROW;
+static int prefix_array (const char *prefix, char **array, size_t n) __THROWNL;
+static int collated_compare (const void *, const void *) __THROWNL;
/* Find the end of the sub-pattern in a brace expression. */