Fix unreachable-code-return warnings

This commit is contained in:
Holger Kaelberer 2023-04-19 10:28:45 +02:00 committed by Martin Hořeňovský
parent 897fe2a01b
commit 10596b2278
2 changed files with 1 additions and 3 deletions

View File

@ -57,8 +57,6 @@ namespace Catch {
auto it = m_impl->factories.find( name );
if ( it == m_impl->factories.end() ) return nullptr;
return it->second->create( CATCH_MOVE( config ) );
return IEventListenerPtr();
}
void ReporterRegistry::registerReporter( std::string const& name,

View File

@ -20,7 +20,7 @@
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wweak-vtables"
#pragma clang diagnostic ignored "-Wmissing-noreturn"
#pragma clang diagnostic ignored "-Wunreachable-code"
#pragma clang diagnostic ignored "-Wunreachable-code-return"
#endif
namespace {