1
0
Fork 0

Fix compile warning with MSVC (#9291)

This commit is contained in:
Tobias Gödderz 2019-06-18 18:14:49 +02:00 committed by Michael Hackstein
parent da6e9da820
commit 0904e8c656
1 changed files with 4 additions and 0 deletions

View File

@ -249,6 +249,10 @@ std::tuple<ExecutionState, LimitStats, SharedAqlItemBlockPtr> LimitExecutor::fet
auto rv =_fetcher.fetchBlockForPassthrough(std::min(atMost, maxRowsLeftToFetch()));
return {rv.first, LimitStats{}, std::move(rv.second)};
}
// The control flow cannot reach this. It is only here to make MSVC happy,
// which is unable to figure out that the switch above is complete.
TRI_ASSERT(false);
THROW_ARANGO_EXCEPTION(TRI_ERROR_INTERNAL_AQL);
}
std::tuple<ExecutionState, LimitExecutor::Stats, size_t> LimitExecutor::skipRows(size_t const toSkipRequested) {