From 48d105af2355658330e23c7e80e9e9dce83d4153 Mon Sep 17 00:00:00 2001 From: Daniel Winsor Date: Wed, 21 Feb 2024 15:05:57 -0800 Subject: [PATCH] Add suppression --- include/gsl/span | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/gsl/span b/include/gsl/span index 3f82a5e..566a01c 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -63,6 +63,12 @@ #pragma GCC diagnostic ignored "-Wsign-conversion" #endif +// Turn off clang unsafe buffer warnings as all accessed are guarded by runtime checks +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" +#endif // defined(__clang__) + namespace gsl {