more MSVC warnings
This commit is contained in:
		
							parent
							
								
									6573981317
								
							
						
					
					
						commit
						e8fb5a3fdc
					
				@ -82,6 +82,13 @@
 | 
			
		||||
 | 
			
		||||
namespace testing {
 | 
			
		||||
 | 
			
		||||
// Silence C4100 (unreferenced formal parameter) for MSVC
 | 
			
		||||
#ifdef _MSC_VER
 | 
			
		||||
# pragma warning(push)
 | 
			
		||||
# pragma warning(disable:4100)
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
// Declares the flags.
 | 
			
		||||
 | 
			
		||||
// This flag temporary enables the disabled tests.
 | 
			
		||||
@ -2298,6 +2305,10 @@ bool StaticAssertTypeEq() {
 | 
			
		||||
// Tries to determine an appropriate directory for the platform.
 | 
			
		||||
GTEST_API_ std::string TempDir();
 | 
			
		||||
 | 
			
		||||
#ifdef _MSC_VER
 | 
			
		||||
# pragma warning(pop)
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
}  // namespace testing
 | 
			
		||||
 | 
			
		||||
// Use this function in main() to run all tests.  It returns 0 if all
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user