Skip to content

obs-c-oracle: Guard the GCC pragma in base_drive.c from MSVC - #571

Merged
zackees merged 1 commit into
masterfrom
fix/base-drive-msvc-pragma
Oct 13, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/base-drive-msvc-pragma

Conversation

@zackees

@zackees zackees commented Oct 13, 2026

Copy link
Copy Markdown
Member

Master's Rust Tests (windows-2025-vs2026) job fails to build the C oracle:

rust\obs-c-oracle\oracle\base_drive.c(6): warning C4068: unknown pragma 'GCC'
rust\obs-c-oracle\oracle\base_drive.c(6): error C2220: the following warning is treated as an error

The pragma came with the -Wformat-nonliteral ratchet (#557). With /WX, MSVC's C4068 for an unknown pragma is an error, so every PR's Windows Rust job fails (seen on #565, run 38403062923). This guards it with #if defined(__GNUC__) || defined(__clang__), the way oracle/video_matrices.c already guards its GCC pragmas. Local gate passed (lint, rust-test, cross, tier2-linux). The Windows job of this PR is the RED→GREEN check.

MSVC reports the unknown GCC pragma as C4068, which /WX makes an error
(C2220), so the oracle fails to build and Rust Tests (windows) fails on
every PR.

Local-Gate: v1 tree=694a793854ca41be5bdb9222b47ebd17597dcd52 secs=397 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run
Ci-Attestation: {"at":1791897995,"gate":"rust/all/fmt","host":"linux-x86_64","key":"3ae3112d6d093d1325aba799a50bec578a851e990490cc17c5f264f3b57492cc","lane":"lint","parents":["74942044530228a9ba0b359416a71452c095d37b"],"secs":35,"stamp":"c6f48ad7f72ed6d9c6b00c196f9d47eb","tree":"694a793854ca41be5bdb9222b47ebd17597dcd52","v":1,"via":"run"}
Ci-Attestation: {"at":1791897995,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"3ae3112d6d093d1325aba799a50bec578a851e990490cc17c5f264f3b57492cc","lane":"lint","parents":["74942044530228a9ba0b359416a71452c095d37b"],"secs":35,"stamp":"da3018fe9469986d9ae05fdf98ad61a5","tree":"694a793854ca41be5bdb9222b47ebd17597dcd52","v":1,"via":"run"}
Ci-Attestation: {"at":1791897995,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"d3b9c8320dbce172b9cb6c9cf3d22d45facbb43d0c45b04c42de48f720b8bc07","lane":"rust-test","parents":["74942044530228a9ba0b359416a71452c095d37b"],"secs":147,"stamp":"7c262b2c33a97c12265479e6aa946e97","tree":"694a793854ca41be5bdb9222b47ebd17597dcd52","v":1,"via":"run"}
Ci-Attestation: {"at":1791897995,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"345307aab1726b4710d75fff3216c5d6e67b72749be43e66856dbd64a452eb62","lane":"cross","parents":["74942044530228a9ba0b359416a71452c095d37b"],"secs":134,"stamp":"3957f602e100e8d6ac7c59dc3c2a7d3d","tree":"694a793854ca41be5bdb9222b47ebd17597dcd52","v":1,"via":"run"}
Ci-Attestation: {"at":1791897995,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"345307aab1726b4710d75fff3216c5d6e67b72749be43e66856dbd64a452eb62","lane":"cross","parents":["74942044530228a9ba0b359416a71452c095d37b"],"secs":134,"stamp":"ef1b60563dcc055bbd0291489e7fc597","tree":"694a793854ca41be5bdb9222b47ebd17597dcd52","v":1,"via":"run"}
Ci-Attestation: {"at":1791897995,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"345307aab1726b4710d75fff3216c5d6e67b72749be43e66856dbd64a452eb62","lane":"cross","parents":["74942044530228a9ba0b359416a71452c095d37b"],"secs":134,"stamp":"f36112cc1c5f75cf3b5df9cbd05d8ce4","tree":"694a793854ca41be5bdb9222b47ebd17597dcd52","v":1,"via":"run"}
Ci-Attestation: {"at":1791897995,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"345307aab1726b4710d75fff3216c5d6e67b72749be43e66856dbd64a452eb62","lane":"cross","parents":["74942044530228a9ba0b359416a71452c095d37b"],"secs":134,"stamp":"64f04136c148568fcd1f803674b575b9","tree":"694a793854ca41be5bdb9222b47ebd17597dcd52","v":1,"via":"run"}
Ci-Attestation: {"at":1791897995,"gate":"rust/x86_64-apple-darwin/clippy","host":"linux-x86_64","key":"345307aab1726b4710d75fff3216c5d6e67b72749be43e66856dbd64a452eb62","lane":"cross","parents":["74942044530228a9ba0b359416a71452c095d37b"],"secs":134,"stamp":"c055f78b9ac529fb6ee926a5fb4a288d","tree":"694a793854ca41be5bdb9222b47ebd17597dcd52","v":1,"via":"run"}
Ci-Attestation: {"at":1791897995,"gate":"rust/x86_64-apple-darwin/dylint","host":"linux-x86_64","key":"345307aab1726b4710d75fff3216c5d6e67b72749be43e66856dbd64a452eb62","lane":"cross","parents":["74942044530228a9ba0b359416a71452c095d37b"],"secs":134,"stamp":"4fab79a6959809e390b501b86ba2d9bb","tree":"694a793854ca41be5bdb9222b47ebd17597dcd52","v":1,"via":"run"}
Ci-Attestation: {"at":1791897995,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"827dbe93d5cba007730199b7816666732e1248f714875e30b387acbfe8bce8a0","lane":"tier2-linux","parents":["74942044530228a9ba0b359416a71452c095d37b"],"secs":82,"stamp":"b671063b06dfdf2220ba52073d54d922","tree":"694a793854ca41be5bdb9222b47ebd17597dcd52","v":1,"via":"run"}
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.

1 participant