btrfs-progs/cmds
Qu Wenruo f914949b1a btrfs-progs: fix set but not used variables
[WARNING]
Clang 15.0.7 warns about several unused variables:

  kernel-shared/zoned.c:829:6: warning: variable 'num_sequential' set but not used [-Wunused-but-set-variable]
          u32 num_sequential = 0, num_conventional = 0;
              ^
  cmds/scrub.c:1174:6: warning: variable 'n_skip' set but not used [-Wunused-but-set-variable]
          int n_skip = 0;
              ^
  mkfs/main.c:493:6: warning: variable 'total_block_count' set but not used [-Wunused-but-set-variable]
          u64 total_block_count = 0;
              ^
  image/main.c:2246:6: warning: variable 'bytenr' set but not used [-Wunused-but-set-variable]
          u64 bytenr = 0;
              ^

[CAUSE]
Most of them are just straightforward set but not used variables.

The only exception is total_block_count, which has commented out code
relying on it.

[FIX]
Just remove those variables, and for @total_block_count, also remove the
comments.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2023-02-18 17:44:03 +01:00
..
balance.c btrfs-progs: cmds: use bool for status variables 2022-10-11 09:08:12 +02:00
commands.h btrfs-progs: add new group reflink and command 2022-12-07 01:43:30 +01:00
device.c btrfs-progs: device stats: fix json formatter type for devid 2022-12-16 00:49:07 +01:00
filesystem-du.c btrfs-progs: cmds: use bool for status variables 2022-10-11 09:08:12 +02:00
filesystem-usage.c btrfs-progs: cmds: use bool for status variables 2022-10-11 09:08:12 +02:00
filesystem-usage.h btrfs-progs: fi usage: unify naming of device and chunk info variables 2022-10-11 09:08:08 +02:00
filesystem.c btrfs-progs: fi mkswapfile: fix page count in header 2023-01-25 16:19:36 +01:00
inspect-dump-super.c btrfs-progs: cmds: use bool for status variables 2022-10-11 09:08:12 +02:00
inspect-dump-tree.c btrfs-progs: replace strerror(errno) with %m in printf formats 2022-10-26 09:46:22 +02:00
inspect-tree-stats.c btrfs-progs: cmds: use bool for status variables 2022-10-11 09:08:12 +02:00
inspect.c btrfs-progs: inspect: add build conditionals around list-chunk 2023-01-05 14:59:12 +01:00
property.c btrfs-progs: property: use pr_verbose for messages 2022-10-11 09:08:11 +02:00
props.h btrfs-progs: prop set: add force parameter 2021-10-07 18:40:24 +02:00
qgroup.c Revert "btrfs-progs: rename qgroup items to match the kernel naming scheme" 2023-01-03 13:10:54 +01:00
qgroup.h Revert "btrfs-progs: rename qgroup items to match the kernel naming scheme" 2023-01-03 13:10:54 +01:00
quota.c btrfs-progs: quota: add -W option to rescan to wait without starting rescan 2022-10-25 21:12:24 +02:00
receive-dump.c btrfs-progs: receive: add support for fs-verity 2022-10-11 09:08:08 +02:00
receive-dump.h btrfs-progs: cmds: update include lists 2022-10-11 09:07:59 +02:00
receive.c btrfs-progs: receive: fix a corruption when decompressing zstd extents 2023-02-18 17:44:02 +01:00
reflink.c btrfs-progs: fix fallthrough cases with proper attributes 2023-02-18 17:44:02 +01:00
replace.c btrfs-progs: ioctl: move dev-replace NO_RESULT definition into replace.c 2022-11-28 18:57:43 +01:00
rescue-chunk-recover.c btrfs-progs: don't use btrfs_header_csum helper 2022-11-30 19:14:29 +01:00
rescue-super-recover.c btrfs-progs: cmds: update include lists 2022-10-11 09:07:59 +02:00
rescue.c btrfs-progs: cmds: use bool for status variables 2022-10-11 09:08:12 +02:00
rescue.h btrfs-progs: unify GPL header comments 2021-09-07 13:58:44 +02:00
restore.c btrfs-progs: sync compression.h from the kernel 2022-11-30 19:14:29 +01:00
scrub.c btrfs-progs: fix set but not used variables 2023-02-18 17:44:03 +01:00
send.c btrfs-progs: replace strerror(errno) with %m in printf formats 2022-10-26 09:46:22 +02:00
subvolume-list.c btrfs-progs: subvol list: fix the wrong timestamp and UUID check for root items 2023-01-02 13:57:29 +01:00
subvolume.c btrfs-progs: subvol sync: print count and progress 2023-01-25 19:55:47 +01:00