]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
blkdev.h: avoid some unused argument warnings
authorThomas Weißschuh <thomas@t-8ch.de>
Fri, 1 Dec 2023 07:07:50 +0000 (08:07 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Fri, 1 Dec 2023 07:11:41 +0000 (08:11 +0100)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
include/blkdev.h

index ffecdcba013abd0ac043607ebe7ab63f490dea13..f2252e7807026623da138903849898013b941f73 100644 (file)
@@ -156,7 +156,9 @@ int blkdev_lock(int fd, const char *devname, const char *lockmode);
 #ifdef HAVE_LINUX_BLKZONED_H
 struct blk_zone_report *blkdev_get_zonereport(int fd, uint64_t sector, uint32_t nzones);
 #else
-static inline struct blk_zone_report *blkdev_get_zonereport(int fd, uint64_t sector, uint32_t nzones)
+static inline struct blk_zone_report *blkdev_get_zonereport(int fd __attribute__((unused)),
+                                                           uint64_t sector __attribute__((unused)),
+                                                           uint32_t nzones __attribute__((unused)))
 {
        return NULL;
 }