Skip to content

Conversation

@BinqAdams
Copy link
Contributor

@BinqAdams BinqAdams commented Jan 20, 2026

When building DXVK Remix with MSVC 19.x (VS 2026), the compiler emits C2360 / C2361 warnings because a local variable is declared directly after a case label. With /WX enabled these become errors and the build aborts.

Added {} around every case …: block that declares workgroups. This makes the declaration part of a proper block scope, satisfying the C++ rule that control flow cannot jump over an initialization. The change is purely syntactic.

Expanded the version check from build_common.ps1.

Builds now succeed on VS 2026.

No functional / logic / shader changes.

build_common.ps1 Outdated
# Get path to Visual Studio installation using vswhere.
#
$vsPath = &$vsWhere -latest -version "[16.0,18.0)" -products * `
$vsPath = &$vsWhere -latest -products * `
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Completely removing the version check is probably a bad idea - could cause problems for people with older VS versions installed. Should this just be -version "[16.0,19.0)" instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've put this in :)

@MarkEHenderson
Copy link
Collaborator

Please squash your commits.

When building DXVK Remix with MSVC 19.x (VS 2026), the compiler emits C2360 / C2361 warnings because a local variable is declared directly after a case label. With /WX enabled these become errors and the build aborts.

Added {} around every case …: block that declares workgroups. This makes the declaration part of a proper block scope, satisfying the C++ rule that control flow cannot jump over an initialization. The change is purely syntactic.

Expanded the version check from build_common.ps1.

Builds now succeed on VS 2026.

No functional / logic / shader changes.

Updated build_common.ps1 to expand the Visual Studio version check.

The version check allows VS '26 but still checks that the user has at least VS '19 to avoid problems for people with older VS versions installed.
@BinqAdams BinqAdams force-pushed the refactor/c2360-workgroup-braces branch from b1d6f64 to 8c65bfd Compare January 24, 2026 04:45
@BinqAdams
Copy link
Contributor Author

Please squash your commits.

Squashed!

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.

2 participants