mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Disable CATCH_INTERNAL_IGNORE_BUT_WARN for NVHPC Compilers
- NVHPC's implementation of `__builtin_constant_p` has a bug which
    results in calls to the immediately evaluated lambda expressions to be
    reported as unevaluated lambdas.
    https://developer.nvidia.com/nvidia_bug/3321845.
  - Hence, we disable CATCH_INTERNAL_IGNORE_BUT_WARN for NVHPC Compilers
			
			
This commit is contained in:
		@@ -71,8 +71,13 @@
 | 
			
		||||
// REQUIRE(std::string("12") + "34" == "1234")
 | 
			
		||||
// ```
 | 
			
		||||
//
 | 
			
		||||
// Similarly, NVHPC's implementation of `__builtin_constant_p` has a bug which
 | 
			
		||||
// results in calls to the immediately evaluated lambda expressions to be
 | 
			
		||||
// reported as unevaluated lambdas.
 | 
			
		||||
// https://developer.nvidia.com/nvidia_bug/3321845.
 | 
			
		||||
//
 | 
			
		||||
// Therefore, `CATCH_INTERNAL_IGNORE_BUT_WARN` is not implemented.
 | 
			
		||||
#  if !defined(__ibmxl__) && !defined(__CUDACC__)
 | 
			
		||||
#  if !defined(__ibmxl__) && !defined(__CUDACC__) && !defined( __NVCOMPILER )
 | 
			
		||||
#    define CATCH_INTERNAL_IGNORE_BUT_WARN(...) (void)__builtin_constant_p(__VA_ARGS__) /* NOLINT(cppcoreguidelines-pro-type-vararg, hicpp-vararg) */
 | 
			
		||||
#  endif
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user