From f7151d384b92446f72e12986a82e9f04f113abbd Mon Sep 17 00:00:00 2001 From: Yaser Afshar Date: Sat, 27 Mar 2021 15:44:52 -0500 Subject: [PATCH] Extra flag to prevent Intel compiler with Clang front-end warning of 'unknown attribute no_sanitize' --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 5289e2e5..f7d7efb0 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -369,7 +369,7 @@ template inline T* make_checked(T* p, size_t) { return p; } #endif template ::value)> -#if FMT_CLANG_VERSION >= 307 +#if FMT_CLANG_VERSION >= 307 && !FMT_ICC_VERSION __attribute__((no_sanitize("undefined"))) #endif inline checked_ptr