fixing MCVS warn
This commit is contained in:
		
							parent
							
								
									87494ebad5
								
							
						
					
					
						commit
						a777f64f67
					
				@ -43,6 +43,16 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
namespace testing {
 | 
					namespace testing {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// The macros trigger warning C4100 (unreferenced formal
 | 
				
			||||||
 | 
					// parameter) in MSVC with -W4.  Unfortunately they cannot be fixed in
 | 
				
			||||||
 | 
					// the macro definition, as the warnings are generated when the macro
 | 
				
			||||||
 | 
					// is expanded and macro expansion cannot contain #pragma.  Therefore
 | 
				
			||||||
 | 
					// we suppress them here.
 | 
				
			||||||
 | 
					#ifdef _MSC_VER
 | 
				
			||||||
 | 
					# pragma warning(push)
 | 
				
			||||||
 | 
					# pragma warning(disable:4100)
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Defines a matcher that matches an empty container. The container must
 | 
					// Defines a matcher that matches an empty container. The container must
 | 
				
			||||||
// support both size() and empty(), which all STL-like containers provide.
 | 
					// support both size() and empty(), which all STL-like containers provide.
 | 
				
			||||||
MATCHER(IsEmpty, negation ? "isn't empty" : "is empty") {
 | 
					MATCHER(IsEmpty, negation ? "isn't empty" : "is empty") {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user