diff --git a/common/utils.c b/common/utils.c index 6617b3ef..71eac462 100644 --- a/common/utils.c +++ b/common/utils.c @@ -401,15 +401,15 @@ int pretty_size_snprintf(u64 size, char *str, size_t str_size, unsigned unit_mod case UNITS_TBYTES: base *= mult; num_divs++; - __attribute__ ((fallthrough)); + /* fallthrough */ case UNITS_GBYTES: base *= mult; num_divs++; - __attribute__ ((fallthrough)); + /* fallthrough */ case UNITS_MBYTES: base *= mult; num_divs++; - __attribute__ ((fallthrough)); + /* fallthrough */ case UNITS_KBYTES: num_divs++; break; @@ -1135,14 +1135,14 @@ int test_num_disk_vs_raid(u64 metadata_profile, u64 data_profile, default: case 4: allowed |= BTRFS_BLOCK_GROUP_RAID10; - __attribute__ ((fallthrough)); + /* fallthrough */ case 3: allowed |= BTRFS_BLOCK_GROUP_RAID6; - __attribute__ ((fallthrough)); + /* fallthrough */ case 2: allowed |= BTRFS_BLOCK_GROUP_RAID0 | BTRFS_BLOCK_GROUP_RAID1 | BTRFS_BLOCK_GROUP_RAID5; - __attribute__ ((fallthrough)); + /* fallthrough */ case 1: allowed |= BTRFS_BLOCK_GROUP_DUP; }