summaryrefslogtreecommitdiff
path: root/src/shared/resize-fs.c
diff options
context:
space:
mode:
authorBenjamin Robin <dev@benjarobin.fr>2020-05-06 20:29:31 +0200
committerBenjamin Robin <dev@benjarobin.fr>2020-05-06 23:03:25 +0200
commit0a0e594a26efe69afc3b05529dc0145a8d674e12 (patch)
tree02429f9312f309cf9fe2826b29ff469cfb1c9ddc /src/shared/resize-fs.c
parent259f0dfbec0048aca8c409ec9e79e814b89c0632 (diff)
downloadsystemd-0a0e594a26efe69afc3b05529dc0145a8d674e12.tar.gz
tree-wide: Mark as _unused_ variables that are only used in assert()
Allow to build without any warning with NDEBUG defined
Diffstat (limited to 'src/shared/resize-fs.c')
-rw-r--r--src/shared/resize-fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/resize-fs.c b/src/shared/resize-fs.c
index 5ed26a6c92..0abd289fec 100644
--- a/src/shared/resize-fs.c
+++ b/src/shared/resize-fs.c
@@ -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