diff --git a/src/core/include/mp-units/bits/hacks.h b/src/core/include/mp-units/bits/hacks.h index 2481eb8ca..87d7c47db 100644 --- a/src/core/include/mp-units/bits/hacks.h +++ b/src/core/include/mp-units/bits/hacks.h @@ -57,6 +57,7 @@ #define MP_UNITS_DIAGNOSTIC_IGNORE_ZERO_AS_NULLPOINTER_CONSTANT \ MP_UNITS_DIAGNOSTIC_IGNORE("-Wzero-as-nullpointer-constant") #define MP_UNITS_DIAGNOSTIC_IGNORE_DEPRECATED MP_UNITS_DIAGNOSTIC_IGNORE("-Wdeprecated-declarations") +#define MP_UNITS_DIAGNOSTIC_IGNORE_BUILTIN_MACRO_REDEFINED MP_UNITS_DIAGNOSTIC_IGNORE("-Wbuiltin-macro-redefined") #else #define MP_UNITS_DIAGNOSTIC_PUSH MP_UNITS_PRAGMA(warning(push)) #define MP_UNITS_DIAGNOSTIC_POP MP_UNITS_PRAGMA(warning(pop)) @@ -103,6 +104,18 @@ inline constexpr from_range_t from_range{}; #endif +// TODO https://github.com/llvm/llvm-project/issues/110224 +#if MP_UNITS_COMP_CLANG == 19 && __cplusplus <= 202302 + +MP_UNITS_DIAGNOSTIC_PUSH +MP_UNITS_DIAGNOSTIC_IGNORE_BUILTIN_MACRO_REDEFINED + +#undef __cpp_deleted_function + +MP_UNITS_DIAGNOSTIC_POP + +#endif + #if defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 17 #define MP_UNITS_CONSTEVAL constexpr