diff --git a/include/gsl/assert b/include/gsl/assert index a601204..a5c216f 100644 --- a/include/gsl/assert +++ b/include/gsl/assert @@ -48,7 +48,7 @@ #if defined(__clang__) #define GSL_SUPPRESS(x) [[gsl::suppress("x")]] #else -#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) +#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) && !defined(__NVCC__) #define GSL_SUPPRESS(x) [[gsl::suppress(x)]] #else #define GSL_SUPPRESS(x) diff --git a/include/gsl/byte b/include/gsl/byte index 9231340..f92a91c 100644 --- a/include/gsl/byte +++ b/include/gsl/byte @@ -24,7 +24,7 @@ #if defined(__clang__) #define GSL_SUPPRESS(x) [[gsl::suppress("x")]] #else -#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) +#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) && !defined(__NVCC__) #define GSL_SUPPRESS(x) [[gsl::suppress(x)]] #else #define GSL_SUPPRESS(x)