Skip to content

#13998 Suppress MSVC C4875 deprecation warning from bundled gsl headers - #14019

Merged
magnesj merged 1 commit into
devfrom
13998-gsl-deprecation-warning-msvc
May 19, 2026
Merged

#13998 Suppress MSVC C4875 deprecation warning from bundled gsl headers#14019
magnesj merged 1 commit into
devfrom
13998-gsl-deprecation-warning-msvc

Conversation

@magnesj

@magnesj magnesj commented May 19, 2026

Copy link
Copy Markdown
Member
  • Adds /wd4875 to the global MSVC compile options.
  • MSVC 14.51+ emits C4875 for the non-string-literal [[gsl::suppress(x)]] form used in the bundled ThirdParty/gsl headers, breaking /WX builds.
  • Upstream fix (microsoft/GSL PR #1213) is merged but not yet in a tagged release (v4.2.1 was cut before it; v4.2.2 was announced but not yet released).

@magnesj
magnesj merged commit af5c133 into dev May 19, 2026
18 checks passed
@magnesj
magnesj deleted the 13998-gsl-deprecation-warning-msvc branch May 19, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant