forked from Mirrors/btrfs-progs
btrfs-progs: Remove unnecessary fallthrough attribute in test_num_disk_vs_raid()
gcc 9.1 reports: utils.c: In function ‘test_num_disk_vs_raid’: utils.c:1931:3: warning: attribute ‘fallthrough’ not preceding a case label or default label 1931 | __attribute__ ((fallthrough)); | ^~~~~~~~~~~~~ As there's no other label to fall to (default: is the first one), remove the annotation. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>master
parent
95ae4184ea
commit
dd1a940297
1
utils.c
1
utils.c
|
@ -1928,7 +1928,6 @@ int test_num_disk_vs_raid(u64 metadata_profile, u64 data_profile,
|
||||||
__attribute__ ((fallthrough));
|
__attribute__ ((fallthrough));
|
||||||
case 1:
|
case 1:
|
||||||
allowed |= BTRFS_BLOCK_GROUP_DUP;
|
allowed |= BTRFS_BLOCK_GROUP_DUP;
|
||||||
__attribute__ ((fallthrough));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dev_cnt > 1 && profile & BTRFS_BLOCK_GROUP_DUP) {
|
if (dev_cnt > 1 && profile & BTRFS_BLOCK_GROUP_DUP) {
|
||||||
|
|
Loading…
Reference in New Issue