Fix debug build (#418)

Add a fake return value after LOG(FATAL) in
HybridGridPointsProcessor::Flush(). This keeps gcc versions lower
than 7 happy when building without optimisation (i.e. debug build).
Fixes #412.
master
Juraj Oršulić 2017-07-25 17:39:49 +02:00 committed by Wolfgang Hess
parent 56dbad15e3
commit 347dc8cec5
1 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,9 @@ PointsProcessor::FlushResult HybridGridPointsProcessor::Flush() {
return FlushResult::kFinished;
}
LOG(FATAL) << "Failed to receive FlushResult::kFinished";
// The following unreachable return statement is needed to avoid a GCC bug
// described at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81508
return FlushResult::kFinished;
}
} // namespace io