diff --git a/include/fmt/format.h b/include/fmt/format.h index 177a2d67..588aa58b 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -342,6 +342,9 @@ template inline T* make_checked(T* p, std::size_t) { return p; } #endif template ::value)> +#if FMT_CLANG_VERSION +__attribute__((no_sanitize("undefined"))) +#endif inline checked_ptr reserve( std::back_insert_iterator it, std::size_t n) { Container& c = get_container(it);