From: Michal Privoznik Date: Mon, 28 Feb 2022 11:53:25 +0000 (+0100) Subject: lxc_fuse: Drop some G_GNUC_UNUSED attributes X-Git-Tag: v8.2.0-rc1~185 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd8c3ad50a3d6c8a03d790b7d8ce6c4ab37bf155;p=thirdparty%2Flibvirt.git lxc_fuse: Drop some G_GNUC_UNUSED attributes 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 --- 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;