changeset 39720:ecb8424f7d3e

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]
author Jim Meyering <meyering@fb.com>
date Mon, 25 Jun 2018 08:28:12 -0700
parents 82f14d8df980
children 853940c18526
files ChangeLog lib/acl-internal.h
diffstat 2 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Jun 24 20:47:58 2018 -0700
+++ b/ChangeLog	Mon Jun 25 08:28:12 2018 -0700
@@ -1,3 +1,11 @@
+2018-06-25  Jim Meyering  <meyering@fb.com>
+
+	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  <meyering@fb.com>
 
 	parse-datetime: accommodate gcc-4.8.5
--- a/lib/acl-internal.h	Sun Jun 24 20:47:58 2018 -0700
+++ b/lib/acl-internal.h	Mon Jun 25 08:28:12 2018 -0700
@@ -293,10 +293,6 @@
 
 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