Skip to content

Commit

Permalink
Add suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
d-winsor committed Feb 21, 2024
1 parent d2b2c98 commit 48d105a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/gsl/span
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

Expand Down

0 comments on commit 48d105a

Please sign in to comment.