1
0
Fork 0

Fixed compile warning of false-positive return-type (#8737)

* Fixed compile warning of false-positive return-type

* Actually fallback to the non-optimal but correct variant
This commit is contained in:
Michael Hackstein 2019-04-12 08:29:58 +02:00 committed by GitHub
parent a07d272b1f
commit e5ce10cd60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -137,4 +137,9 @@ std::pair<ExecutionState, size_t> LimitExecutor::expectedNumberOfRows(size_t atM
return {ExecutionState::DONE, 0};
}
}
TRI_ASSERT(false);
// This should not be reached, (the switch case is covering all enum values)
// Nevertheless if it is reached this will fall back to the non.optimal, but
// working variant
return {ExecutionState::DONE, atMost};
}