Extra flag to prevent Intel compiler with Clang front-end warning of 'unknown attribute no_sanitize'

This commit is contained in:
Yaser Afshar 2021-03-27 15:44:52 -05:00 committed by Victor Zverovich
parent 0fb8ef8f79
commit f7151d384b

View File

@ -369,7 +369,7 @@ template <typename T> inline T* make_checked(T* p, size_t) { return p; }
#endif
template <typename Container, FMT_ENABLE_IF(is_contiguous<Container>::value)>
#if FMT_CLANG_VERSION >= 307
#if FMT_CLANG_VERSION >= 307 && !FMT_ICC_VERSION
__attribute__((no_sanitize("undefined")))
#endif
inline checked_ptr<typename Container::value_type>