From dd1a9402973ba5c09345610ec8ea3bda80648e2d Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Mon, 17 Jun 2019 15:59:35 +0800 Subject: [PATCH] btrfs-progs: Remove unnecessary fallthrough attribute in test_num_disk_vs_raid() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: David Sterba --- utils.c | 1 - 1 file changed, 1 deletion(-) diff --git a/utils.c b/utils.c index 0b271517..2709ced9 100644 --- a/utils.c +++ b/utils.c @@ -1928,7 +1928,6 @@ int test_num_disk_vs_raid(u64 metadata_profile, u64 data_profile, __attribute__ ((fallthrough)); case 1: allowed |= BTRFS_BLOCK_GROUP_DUP; - __attribute__ ((fallthrough)); } if (dev_cnt > 1 && profile & BTRFS_BLOCK_GROUP_DUP) {