]> Savannah Git Hosting - gnulib.git/commitdiff
acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
authorJim Meyering <meyering@fb.com>
Mon, 25 Jun 2018 15:28:12 +0000 (08:28 -0700)
committerJim Meyering <meyering@fb.com>
Mon, 25 Jun 2018 15:28:56 +0000 (08:28 -0700)
* 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
lib/acl-internal.h

index 1ec489afa9758e6f4bbbda14f9a053e65fa6274f..6104259179f890311923ee923829984d1f3862af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 6c65e65e5e7032f7b2b9be6c4ec6a537aea10ff8..0669d83c4695ea47bf5a4876c143fef68d4f94cb 100644 (file)
@@ -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