]> xenbits.xensource.com Git - libvirt.git/commitdiff
lxc_fuse: Drop some G_GNUC_UNUSED attributes
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 28 Feb 2022 11:53:25 +0000 (12:53 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 7 Mar 2022 13:01:48 +0000 (14:01 +0100)
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>
src/lxc/lxc_fuse.c

index 3732f2e245a50c2bbda00846458cc43f39f4f652..6c61cbdf02b5f995678351017d780578a4cc6ae9 100644 (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;