[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] lib/acl-internal.h: fix build failure with -Werror=attributes
From: |
Carlos Santos |
Subject: |
[PATCH] lib/acl-internal.h: fix build failure with -Werror=attributes |
Date: |
Mon, 25 Jun 2018 00:05:24 -0300 |
Remove 'const' attribute from free_permission_context to prevent
compilation error:
lib/acl-internal.h:300:3: error: 'const' attribute on function
returning 'void' [-Werror=attributes]
Signed-off-by: Carlos Santos <address@hidden>
---
lib/acl-internal.h | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/lib/acl-internal.h b/lib/acl-internal.h
index 6c65e65e5..0669d83c4 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.17.1
- [PATCH] lib/acl-internal.h: fix build failure with -Werror=attributes,
Carlos Santos <=