1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

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 <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Michal Privoznik 2022-02-28 12:53:25 +01:00
parent 2543cdf982
commit fd8c3ad50a

View File

@ -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;