changeset 17690:daca962ab9c1

acl: apply pure attribute to two functions * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Mark as "pure" as flagged by gcc 4.9 on Solaris 10. Signed-off-by: Ben Walton <bdwalton@gmail.com>
author Ben Walton <bdwalton@gmail.com>
date Sun, 01 Jun 2014 23:39:44 +0100
parents 0fc09785fa2f
children 7d9357b7b5c6
files ChangeLog lib/acl-internal.h
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Jun 01 22:25:28 2014 +0100
+++ b/ChangeLog	Sun Jun 01 23:39:44 2014 +0100
@@ -1,3 +1,9 @@
+2014-06-02  Ben Walton  <bdwalton@gmail.com>
+
+	acl: apply pure attribute to two functions
+	* lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
+	Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
+
 2014-06-01  Pádraig Brady  <P@draigBrady.com>
 
 	gnulib-common.m4: add _GL_UNUSED_LABEL
--- a/lib/acl-internal.h	Sun Jun 01 22:25:28 2014 +0100
+++ b/lib/acl-internal.h	Sun Jun 01 23:39:44 2014 +0100
@@ -174,14 +174,14 @@
 
 /* Return 1 if the given ACL is non-trivial.
    Return 0 if it is trivial, i.e. equivalent to a simple stat() mode.  */
-extern int acl_nontrivial (int count, aclent_t *entries);
+extern int acl_nontrivial (int count, aclent_t *entries) _GL_ATTRIBUTE_PURE;
 
 #  ifdef ACE_GETACL /* Solaris 10 */
 
 /* Test an ACL retrieved with ACE_GETACL.
    Return 1 if the given ACL, consisting of COUNT entries, is non-trivial.
    Return 0 if it is trivial, i.e. equivalent to a simple stat() mode.  */
-extern int acl_ace_nontrivial (int count, ace_t *entries);
+extern int acl_ace_nontrivial (int count, ace_t *entries) _GL_ATTRIBUTE_PURE;
 
 /* Definitions for when the built executable is executed on Solaris 10
    (newer version) or Solaris 11.  */