1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-18 05:45:45 +02:00

Bees: fix [-Werror=implicit-fallthrough=]

In gcc 7+ warning: implicit-fallthrough has been added
In some places fallthrough is expectable, disable warning

Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
This commit is contained in:
Timofey Titovets 2017-06-13 18:05:38 +03:00
parent 5a3f1be09e
commit 5350b0f113
2 changed files with 10 additions and 8 deletions

View File

@ -531,6 +531,7 @@ namespace crucible {
break; break;
case BTRFS_FILE_EXTENT_PREALLOC: case BTRFS_FILE_EXTENT_PREALLOC:
e.m_flags |= Extent::PREALLOC; e.m_flags |= Extent::PREALLOC;
// fallthrough
case BTRFS_FILE_EXTENT_REG: { case BTRFS_FILE_EXTENT_REG: {
e.m_physical = call_btrfs_get(btrfs_stack_file_extent_disk_bytenr, i.m_data); e.m_physical = call_btrfs_get(btrfs_stack_file_extent_disk_bytenr, i.m_data);

View File

@ -768,6 +768,7 @@ BeesCrawl::fetch_extents()
break; break;
case BTRFS_FILE_EXTENT_PREALLOC: case BTRFS_FILE_EXTENT_PREALLOC:
BEESCOUNT(crawl_prealloc); BEESCOUNT(crawl_prealloc);
// fallthrough
case BTRFS_FILE_EXTENT_REG: { case BTRFS_FILE_EXTENT_REG: {
auto physical = call_btrfs_get(btrfs_stack_file_extent_disk_bytenr, i.m_data); auto physical = call_btrfs_get(btrfs_stack_file_extent_disk_bytenr, i.m_data);
auto ram = call_btrfs_get(btrfs_stack_file_extent_ram_bytes, i.m_data); auto ram = call_btrfs_get(btrfs_stack_file_extent_ram_bytes, i.m_data);