From 60d85d598ce49a6c631c9644ce6c898762c2a5a1 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 3 May 2020 08:43:10 -0700 Subject: [PATCH] Suppress ubsan warning --- include/fmt/format.h | 3 +++ 1 file changed, 3 insertions(+) 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);