Silence unused var warning
authorRose <83477269+AtariDreams@users.noreply.github.com>
Wed, 3 May 2023 13:50:31 +0000 (09:50 -0400)
committerAndrew Tridgell <andrew@tridgell.net>
Sat, 6 Apr 2024 23:28:03 +0000 (09:28 +1000)
recv_ida_entries still needs to be called regardless, so we cannot take that out. Let's just quiet the compiler instead.

acls.c

diff --git a/acls.c b/acls.c
index 3cf12eeb07c42238b81236850618bd8c2b1b23ba..a2b0ff3ec683aa29de5fbad96f83eb2e2d9fd7c8 100644 (file)
--- a/acls.c
+++ b/acls.c
@@ -765,6 +765,7 @@ static int recv_rsync_acl(int f, item_list *racl_list, SMB_ACL_TYPE_T type, mode
        /* If we received a superfluous mask, throw it away. */
        duo_item->racl.mask_obj = NO_ENTRY;
        (void)mode;
+       (void)computed_mask_bits;
 #else
        if (duo_item->racl.names.count && duo_item->racl.mask_obj == NO_ENTRY) {
                /* Mask must be non-empty with lists. */