mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-04 05:09:53 +01:00
Fix C4702 (unreachable code) in generators
Generators might get removed anyway, but at least compilation wont trigger Wx on MSVC in the meantime.
This commit is contained in:
parent
d7eb041ab5
commit
7e14232924
@ -98,7 +98,6 @@ public:
|
||||
index += generator->size();
|
||||
}
|
||||
CATCH_INTERNAL_ERROR( "Indexed past end of generated range" );
|
||||
return T(); // Suppress spurious "not all control paths return a value" warning in Visual Studio - if you know how to fix this please do so
|
||||
}
|
||||
|
||||
void add( const IGenerator<T>* generator ) {
|
||||
|
Loading…
Reference in New Issue
Block a user