From: John Spray Date: Thu, 13 Aug 2015 10:18:20 +0000 (+0100) Subject: client: fix unused var warning X-Git-Tag: v9.1.0~369^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F5569%2Fhead;p=ceph.git client: fix unused var warning Signed-off-by: John Spray --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 2607f3e25cc0..4259c6ecdf60 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -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;