Add missing __builtin_unreachable for switch/case for gcc

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2022-03-14 15:45:09 +03:00
parent 619e11bcf6
commit 6da2c48b7a
2 changed files with 2 additions and 0 deletions

View File

@ -437,6 +437,7 @@ String FileSegment::stateToString(FileSegment::State state)
case FileSegment::State::SKIP_CACHE: case FileSegment::State::SKIP_CACHE:
return "SKIP_CACHE"; return "SKIP_CACHE";
} }
__builtin_unreachable();
} }
String FileSegmentsHolder::toString() String FileSegmentsHolder::toString()

View File

@ -96,6 +96,7 @@ private:
case ReadType::REMOTE_FS_READ_AND_PUT_IN_CACHE: case ReadType::REMOTE_FS_READ_AND_PUT_IN_CACHE:
return "REMOTE_FS_READ_AND_PUT_IN_CACHE"; return "REMOTE_FS_READ_AND_PUT_IN_CACHE";
} }
__builtin_unreachable();
} }
size_t first_offset = 0; size_t first_offset = 0;
}; };