mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +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:
		| @@ -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 ) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský