Skip to content

fix: accept C11 flexible arrays in the MSVC oracle build - #1563

Merged
zackees merged 2 commits into
masterfrom
fix/1427-oracle-msvc-flexible-array
Oct 20, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/1427-oracle-msvc-flexible-array

Conversation

@zackees

@zackees zackees commented Oct 20, 2026

Copy link
Copy Markdown
Member

The C oracle includes obs-internal.h, whose C11 flexible array triggers MSVC C4200 under /W4 /WX. Suppress that diagnostic alongside the oracle's existing MSVC exceptions, retaining strict warnings and including the flag in its input hash.

Fixes #1427.

Validation:

  • RED 8645e79f0: uv run python -m unittest ci/test_oracle_msvc.py fails because /wd4200 is absent.
  • GREEN f53a06a1d: that check plus ci/test_registration.py passes (6 tests).
  • soldr cargo fmt --all --check and git diff --check pass.

The regression check covers build configuration; native MSVC compilation is pending PR CI. No C implementation, public headers, existing C tests, or runtime behavior changed. Port test tiers are not applicable to this compiler configuration fix.

@zackees

zackees commented Oct 20, 2026

Copy link
Copy Markdown
Member Author

Additional local validation: all 772 CI Python self-tests pass, and SOLDR_RUSTC_WRAPPER=none soldr cargo check -p obs-c-oracle --locked passes. The PR path skips Windows, so the existing full validation workflow was dispatched for native MSVC evidence: https://github.com/obs-rust/obs-studio/actions/runs/39498362355. Waiting for that result before landing.

@zackees
zackees enabled auto-merge October 20, 2026 21:12
@zackees
zackees added this pull request to the merge queue Oct 20, 2026
Merged via the queue into master with commit 6853332 Oct 20, 2026
48 checks passed
@zackees
zackees deleted the fix/1427-oracle-msvc-flexible-array branch October 26, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

obs-c-oracle: MSVC build stops on C4200 (flexible array in obs-internal.h) with -W4 -WX

1 participant