From fd8c3ad50a3d6c8a03d790b7d8ce6c4ab37bf155 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Mon, 28 Feb 2022 12:53:25 +0100 Subject: [PATCH] lxc_fuse: Drop some G_GNUC_UNUSED attributes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit There are few arguments that are marked as G_GNUC_UNUSED even though they are clearly used within their respective functions. Drop the annotation in such cases. Signed-off-by: Michal Privoznik Reviewed-by: Ján Tomko --- src/lxc/lxc_fuse.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lxc/lxc_fuse.c b/src/lxc/lxc_fuse.c index 3732f2e245..6c61cbdf02 100644 --- a/src/lxc/lxc_fuse.c +++ b/src/lxc/lxc_fuse.c @@ -103,8 +103,8 @@ static int lxcProcReaddir(const char *path, void *buf, return 0; } -static int lxcProcOpen(const char *path G_GNUC_UNUSED, - struct fuse_file_info *fi G_GNUC_UNUSED) +static int lxcProcOpen(const char *path, + struct fuse_file_info *fi) { if (STRNEQ(path, fuse_meminfo_path)) return -ENOENT; @@ -242,10 +242,10 @@ static int lxcProcReadMeminfo(char *hostpath, virDomainDef *def, return res; } -static int lxcProcRead(const char *path G_GNUC_UNUSED, - char *buf G_GNUC_UNUSED, - size_t size G_GNUC_UNUSED, - off_t offset G_GNUC_UNUSED, +static int lxcProcRead(const char *path, + char *buf, + size_t size, + off_t offset, struct fuse_file_info *fi G_GNUC_UNUSED) { int res = -ENOENT; -- 2.47.2