On 2024-11-10 05:48, Pádraig Brady wrote:
BTW I've pushed a tweak to gnulib to avoid a -Werror=unused-variable
issue with --disable-acl
Thanks, I installed the attached further patch, since the res5t of the
file uses MAYBE_UNUSED.From 6a018d0492239d01c2cc8fd56a1acec4d6fcd44d Mon Sep 17 00:00:00 2001
From: Paul Eggert <egg...@cs.ucla.edu>
Date: Sun, 10 Nov 2024 21:18:02 -0800
Subject: [PATCH] =?UTF-8?q?file-has-acl:=20=5FGL=5FUNUSED=20=E2=86=92=20MA?=
=?UTF-8?q?YBE=5FUNUSED?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
lib/file-has-acl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/file-has-acl.c b/lib/file-has-acl.c
index 1cd9795416..3cfff7ec75 100644
--- a/lib/file-has-acl.c
+++ b/lib/file-has-acl.c
@@ -341,7 +341,7 @@ int
file_has_aclinfo (MAYBE_UNUSED char const *restrict name,
struct aclinfo *restrict ai, int flags)
{
- _GL_UNUSED unsigned char d_type = flags & UCHAR_MAX;
+ MAYBE_UNUSED unsigned char d_type = flags & UCHAR_MAX;
#if USE_LINUX_XATTR
int initial_errno = errno;
--
2.43.0