From 299021f1447b3699181b1c9dc9828123c6740cdb Mon Sep 17 00:00:00 2001 From: Werner Henze Date: Thu, 4 Dec 2025 09:39:49 +0100 Subject: [PATCH] Revert unintended change to GSL_SUPPRESS 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. --- include/gsl/assert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gsl/assert b/include/gsl/assert index 3420ecbf..a08424ca 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__)