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 <casan...@datacom.com.br> --- 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