diff --git a/include/gsl/gsl_assert b/include/gsl/gsl_assert index 96eaada..3b96117 100644 --- a/include/gsl/gsl_assert +++ b/include/gsl/gsl_assert @@ -45,7 +45,7 @@ #if defined(__clang__) #define GSL_SUPPRESS(x) [[gsl::suppress("x")]] #else -#if defined(_MSC_VER) +#if defined(_MSC_VER) && ! defined(__INTEL_COMPILER) #define GSL_SUPPRESS(x) [[gsl::suppress(x)]] #else #define GSL_SUPPRESS(x) diff --git a/include/gsl/gsl_byte b/include/gsl/gsl_byte index 9e68d0d..c0d78ce 100644 --- a/include/gsl/gsl_byte +++ b/include/gsl/gsl_byte @@ -24,7 +24,7 @@ #if defined(__clang__) #define GSL_SUPPRESS(x) [[gsl::suppress("x")]] #else -#if defined(_MSC_VER) +#if defined(_MSC_VER) && ! defined(__INTEL_COMPILER) #define GSL_SUPPRESS(x) [[gsl::suppress(x)]] #else #define GSL_SUPPRESS(x)