mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Sweep out some extra warnings
Swept: `-Wpadded` in some places (where it caused extra size, instead of just saying "hey, we padded struct at the end to align, just as standard says") `-Wweak-vtables` everywhere (Clang) `-Wexit-time-destructors` everywhere (Clang) `-Wmissing-noreturn` everywhere (Clang) The last three are enabled for Clang compilation going forward. Also enabled `-Wunreachable-code` for Clang and GCC
This commit is contained in:
		| @@ -64,13 +64,13 @@ namespace Catch { | ||||
|         public: | ||||
|             AssertionPrinter& operator= ( AssertionPrinter const& ) = delete; | ||||
|             AssertionPrinter( AssertionPrinter const& ) = delete; | ||||
|             AssertionPrinter( std::ostream& _stream, AssertionStats const& _stats, size_t counter ) | ||||
|             AssertionPrinter( std::ostream& _stream, AssertionStats const& _stats, size_t _counter ) | ||||
|             : stream( _stream ) | ||||
|             , result( _stats.assertionResult ) | ||||
|             , messages( _stats.infoMessages ) | ||||
|             , itMessage( _stats.infoMessages.begin() ) | ||||
|             , printInfoMessages( true ) | ||||
|             , counter(counter) | ||||
|             , counter(_counter) | ||||
|             {} | ||||
|  | ||||
|             void print() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský