mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Fix: Clang 19 -Wc++20-extensions warning (#2910)
This commit is contained in:
		 abhishekbelgaonkar23
					abhishekbelgaonkar23
				
			
				
					committed by
					
						 Chris Thrasher
						Chris Thrasher
					
				
			
			
				
	
			
			
			 Chris Thrasher
						Chris Thrasher
					
				
			
						parent
						
							76f70b1403
						
					
				
				
					commit
					f51dc98dfc
				
			| @@ -103,8 +103,16 @@ | ||||
| #    define CATCH_INTERNAL_SUPPRESS_UNUSED_VARIABLE_WARNINGS \ | ||||
|          _Pragma( "clang diagnostic ignored \"-Wunused-variable\"" ) | ||||
|  | ||||
| #    define CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS \ | ||||
|          _Pragma( "clang diagnostic ignored \"-Wgnu-zero-variadic-macro-arguments\"" ) | ||||
| #    if (__clang_major__ >= 20) | ||||
| #        define CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS \ | ||||
|              _Pragma( "clang diagnostic ignored \"-Wvariadic-macro-arguments-omitted\"" ) | ||||
| #    elif (__clang_major__ == 19) | ||||
| #        define CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS \ | ||||
| 	         _Pragma( "clang diagnostic ignored \"-Wc++20-extensions\"" ) | ||||
| #    else | ||||
| #        define CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS | ||||
|              _Pragma( "clang diagnostic ignored \"-Wgnu-zero-variadic-macro-arguments\"" ) | ||||
| #    endif | ||||
|  | ||||
| #    define CATCH_INTERNAL_SUPPRESS_UNUSED_TEMPLATE_WARNINGS \ | ||||
|          _Pragma( "clang diagnostic ignored \"-Wunused-template\"" ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user