Apply a better way to annotate unreachability to the C++ compiler.

This commit is contained in:
Christian Parpart
2022-06-07 16:41:04 +02:00
parent 927da20ce4
commit 4ae43884d0
6 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -278,7 +278,7 @@ unique_ptr<FitnessMetric> FitnessMetricFactory::build(
}
// FIXME: Workaround for spurious GCC 12.1 warning (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105794)
throw exception();
util::unreachable();
}
PopulationFactory::Options PopulationFactory::Options::fromCommandLine(po::variables_map const& _arguments)