From ed78f0e059003680af6476989c39c9ba18ae3fd0 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 25 Jun 2018 08:28:12 -0700 Subject: [PATCH] acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function * lib/acl-internal.h (free_permission_context): Remove that attribute directive. Otherwise, it would provoke this from GCC 9: lib/acl-internal.h:300:3: error: 'const' attribute on function \ returning 'void' [-Werror=attributes] --- ChangeLog | 8 ++++++++ lib/acl-internal.h | 6 +----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1ec489afa9..6104259179 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2018-06-25 Jim Meyering + + acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function + * lib/acl-internal.h (free_permission_context): Remove that + attribute directive. Otherwise, it would provoke this from GCC 9: + lib/acl-internal.h:300:3: error: 'const' attribute on function \ + returning 'void' [-Werror=attributes] + 2018-06-24 Jim Meyering parse-datetime: accommodate gcc-4.8.5 diff --git a/lib/acl-internal.h b/lib/acl-internal.h index 6c65e65e5e..0669d83c46 100644 --- a/lib/acl-internal.h +++ b/lib/acl-internal.h @@ -293,10 +293,6 @@ struct permission_context { 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 *) -#if ! (defined USE_ACL && (HAVE_ACL_GET_FILE || defined GETACL)) - _GL_ATTRIBUTE_CONST -#endif - ; +void free_permission_context (struct permission_context *); _GL_INLINE_HEADER_END -- 2.39.5