Mercurial > gnulib
changeset 18011:4641db87f60b
acl-permissions: pacify -Wsuggest-attribute=const
Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
* lib/acl-internal.h (free_permission_context):
Declare with attribute const if ! (defined USE_ACL &&
(HAVE_ACL_GET_FILE || defined GETACL)).
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sat, 06 Jun 2015 18:20:40 -0700 |
parents | 9ccbf08c9455 |
children | 678b2f611237 |
files | ChangeLog lib/acl-internal.h |
diffstat | 2 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sat Jun 06 00:56:01 2015 -0700 +++ b/ChangeLog Sat Jun 06 18:20:40 2015 -0700 @@ -1,5 +1,11 @@ 2015-06-06 Paul Eggert <eggert@cs.ucla.edu> + acl-permissions: pacify -Wsuggest-attribute=const + Problem reported by Masanari Iida in: http://bugs.gnu.org/20753 + * lib/acl-internal.h (free_permission_context): + Declare with attribute const if ! (defined USE_ACL && + (HAVE_ACL_GET_FILE || defined GETACL)). + fsync: document AIX misbehavior * doc/posix-functions/fsync.texi (fsync): Document failure on AIX with read-only file descriptor.
--- a/lib/acl-internal.h Sat Jun 06 00:56:01 2015 -0700 +++ b/lib/acl-internal.h Sat Jun 06 18:20:40 2015 -0700 @@ -289,6 +289,10 @@ int get_permissions (const char *, int, mode_t, struct permission_context *); int set_permissions (struct permission_context *, const char *, int); -void free_permission_context (struct permission_context *); +void free_permission_context (struct permission_context *) +#if ! (defined USE_ACL && (HAVE_ACL_GET_FILE || defined GETACL)) + _GL_ATTRIBUTE_CONST +#endif + ; _GL_INLINE_HEADER_END