tree-wide: Mark as _unused_ variables that are only used in assert()

Allow to build without any warning with NDEBUG defined
This commit is contained in:
Benjamin Robin
2020-05-06 23:03:25 +02:00
parent 259f0dfbec
commit 0a0e594a26
6 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -15,7 +15,6 @@
int resize_fs(int fd, uint64_t sz, uint64_t *ret_size) {
struct statfs sfs;
int r;
assert(fd >= 0);
@@ -42,6 +41,7 @@ int resize_fs(int fd, uint64_t sz, uint64_t *ret_size) {
*ret_size = u * sfs.f_bsize;
} else if (is_fs_type(&sfs, BTRFS_SUPER_MAGIC)) {
_unused_ int r;
struct btrfs_ioctl_vol_args args = {};
/* 256M is the minimize size enforced by the btrfs kernel code when resizing (which is