catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Fix C4702 (unreachable code) in generators
- Commit
7e142329243f372330895c6e0bd309487382b35f- Author
- Martin Hořeňovský ·
- Parents
d7eb041ab5e0
Changes
include/internal/catch_generators.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/include/internal/catch_generators.hpp b/include/internal/catch_generators.hpp index e02691cf..71ae5e38 100644 --- a/include/internal/catch_generators.hpp +++ b/include/internal/catch_generators.hpp @@ -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 ) {