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 {