Disable denorm deprecation warnings in MSVC C++23.
This commit is contained in:
		
							parent
							
								
									176821f2f7
								
							
						
					
					
						commit
						48b254a4bc
					
				| @ -21,6 +21,11 @@ | ||||
|     #pragma warning( push ) | ||||
|   #endif | ||||
|   #pragma warning( disable : 4100 4101 4127 4181 4211 4244 4273 4324 4503 4512 4522 4700 4714 4717 4800) | ||||
|   // We currently rely on has_denorm in tests, and need it defined correctly for half/bfloat16.
 | ||||
|   #ifndef _SILENCE_CXX23_DENORM_DEPRECATION_WARNING | ||||
|     #define EIGEN_REENABLE_CXX23_DENORM_DEPRECATION_WARNING 1 | ||||
|     #define _SILENCE_CXX23_DENORM_DEPRECATION_WARNING | ||||
|   #endif | ||||
| 
 | ||||
| #elif defined __INTEL_COMPILER | ||||
|   // 2196 - routine is both "inline" and "noinline" ("noinline" assumed)
 | ||||
|  | ||||
| @ -8,6 +8,11 @@ | ||||
| #ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS | ||||
|   #ifdef _MSC_VER | ||||
|     #pragma warning( pop ) | ||||
|     #ifdef EIGEN_REENABLE_CXX23_DENORM_DEPRECATION_WARNING | ||||
|       #undef EIGEN_REENABLE_CXX23_DENORM_DEPRECATION_WARNING | ||||
|       #undef _SILENCE_CXX23_DENORM_DEPRECATION_WARNING | ||||
|     #endif | ||||
| 
 | ||||
|   #elif defined __INTEL_COMPILER | ||||
|     #pragma warning pop | ||||
|   #elif defined __clang__ | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Antonio Sánchez
						Antonio Sánchez