From 4fb59125d1a9a3a14b982d68ab988a1f22787a80 Mon Sep 17 00:00:00 2001 From: Werner Henze <34543625+beinhaerter@users.noreply.github.com> Date: Thu, 4 Dec 2025 20:44:26 +0100 Subject: [PATCH] Revert unintended change to GSL_SUPPRESS (#1226) PR #1213 changed this line. According to https://github.com/microsoft/GSL/pull/1213/files#r2586073058 the change was unintended. This PR reverts the change to the previous implementation. Co-authored-by: Werner Henze --- include/gsl/assert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gsl/assert b/include/gsl/assert index 3420ecb..a08424c 100644 --- a/include/gsl/assert +++ b/include/gsl/assert @@ -51,7 +51,7 @@ // Visual Studio versions after 2022 (_MSC_VER > 1944) support the justification message. #define GSL_SUPPRESS(x) [[gsl::suppress(#x)]] #elif defined(_MSC_VER) && !defined(__INTEL_COMPILER) && !defined(__NVCC__) -#define GSL_SUPPRESS(x) [[gsl::suppress(#x)]] +#define GSL_SUPPRESS(x) [[gsl::suppress(x)]] #else #define GSL_SUPPRESS(x) #endif // defined(__clang__)