]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: fix unused var warning 5569/head
authorJohn Spray <john.spray@redhat.com>
Thu, 13 Aug 2015 10:18:20 +0000 (11:18 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 13 Aug 2015 10:18:20 +0000 (11:18 +0100)
Signed-off-by: John Spray <john.spray@redhat.com>
src/client/Client.cc

index 2607f3e25cc0b7c4e1f8ce343c3fbc96500b3851..4259c6ecdf605cd244f776c26fc1a67f18a7739e 100644 (file)
@@ -4552,7 +4552,9 @@ int Client::check_permissions(Inode *in, int flags, int uid, int gid)
 {
   // initial number of group entries, defaults to posix standard of 16
   // PAM implementations may provide more than 16 groups....
+#if HAVE_GETGROUPLIST
   int initial_group_count = 16;
+#endif
 
   gid_t *sgids = NULL;
   int sgid_count = 0;