From 419ea60e3eeb16f56551d01fea3f4266a79f8bf9 Mon Sep 17 00:00:00 2001 From: Roelf-Jilling Date: Mon, 15 Oct 2018 15:42:18 +0200 Subject: [PATCH] Fix #739 correct cppcorecheck warnings for clang-cl --- include/gsl/gsl_assert | 10 +++++----- include/gsl/gsl_byte | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/gsl/gsl_assert b/include/gsl/gsl_assert index 3c952e6..6a44e74 100644 --- a/include/gsl/gsl_assert +++ b/include/gsl/gsl_assert @@ -22,17 +22,17 @@ // // make suppress attributes parse for some compilers -// Hopefully temporary until suppresion standardization occurs +// Hopefully temporary until suppression standardization occurs // -#if defined (_MSC_VER) -#define GSL_SUPPRESS(x) [[gsl::suppress(x)]] -#else #if defined(__clang__) #define GSL_SUPPRESS(x) [[gsl::suppress("x")]] #else +#if defined (_MSC_VER) +#define GSL_SUPPRESS(x) [[gsl::suppress(x)]] +#else #define GSL_SUPPRESS(x) -#endif // __clang__ #endif // _MSC_VER +#endif // __clang__ // // Temporary until MSVC STL supports no-exceptions mode. diff --git a/include/gsl/gsl_byte b/include/gsl/gsl_byte index bc18886..717c8ed 100644 --- a/include/gsl/gsl_byte +++ b/include/gsl/gsl_byte @@ -19,17 +19,17 @@ // // make suppress attributes work for some compilers -// Hopefully temporary until suppresion standardization occurs +// Hopefully temporary until suppression standardization occurs // -#if defined(_MSC_VER) -#define GSL_SUPPRESS(x) [[gsl::suppress(x)]] -#else #if defined(__clang__) #define GSL_SUPPRESS(x) [[gsl::suppress("x")]] #else +#if defined(_MSC_VER) +#define GSL_SUPPRESS(x) [[gsl::suppress(x)]] +#else #define GSL_SUPPRESS(x) -#endif // __clang__ #endif // _MSC_VER +#endif // __clang__ #include