From: Jim Meyering Date: Mon, 25 Jun 2018 15:28:12 +0000 (-0700) Subject: acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function X-Git-Tag: v1.0~5543 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=ed78f0e059003680af6476989c39c9ba18ae3fd0;p=gnulib.git 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] --- 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