Skip to content

build(clang): drop the last two -Wno-strict-prototypes pins (#2624) - #2850

Merged
zackees merged 2 commits into
masterfrom
infra/2624-clang-prototype-pins
Oct 29, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/2624-clang-prototype-pins

Conversation

@zackees

@zackees zackees commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Drops the last two -Wno-strict-prototypes pins #2678 left behind, both clang-only:

The Linux half of #2624 is measured and closed (ci/warning_findings.py replay over the Tier 2 compdb and the Ubuntu app lane's own 155 C TUs: 0 findings). These two entries are the macOS/AppleClang-only remainder, which this Linux host cannot replay.

RED: with the pins present the macOS app lane cannot report a strict-prototype finding for those targets — the diagnostic is disabled for exactly the TUs that carry the macOS sources. First-party C is not compiled at the rule there, unlike gcc.
GREEN: the lane compiles those TUs with -Wstrict-prototypes live; the finding list from its compile log is the acceptance evidence. Any findings it surfaces are fixed in this branch before the PR leaves draft.

Verified: both pins were dead. The macOS app lane's log for this branch is clean — arm64 and x86_64 compiled the affected targets with no -Wstrict-prototypes diagnostic, at CMAKE_COMPILE_WARNING_AS_ERROR ON (evidence and links in the comment below), so no source change was needed. No user-visible behaviour change, so no docs/features.md line.

Fixes #2624

#2678 removed the global -Wno-missing-prototypes/-Wno-strict-prototypes pins and
fixed the first-party C they had been hiding, but two clang-only entries stayed:
libobs-opengl's target option and the macOS PUBLIC list for libobs-objects and
libobs. This drops both so AppleClang/Clang compile first-party C at the rule
like gcc already does. -Wno-shorten-64-to-32 stays: it is a different diagnostic
and out of this issue's scope.

RED: with the pins present the macOS app lane cannot report a strict-prototype
finding at all for these targets (the warning is disabled for exactly the TUs
that carry the macOS/Objective-C sources). GREEN: the same lane compiles those
TUs with -Wstrict-prototypes live; the finding list from its compile log is the
evidence and the follow-up fixes ride in this branch once macOS reports them.

Refs #2624
@zackees

zackees commented Oct 28, 2026

Copy link
Copy Markdown
Member Author

Dispatch for the evidence: Scheduled run 40783045400 on this branch (gh workflow run scheduled.yaml --ref infra/2624-clang-prototype-pins). A PR's own CI never runs the macOS app build (full: false for the dev cycle), and build-project.yaml has no workflow_dispatch trigger, so the scheduled dispatch is the lane that compiles libobs-objects/libobs/libobs-opengl on AppleClang with -Wstrict-prototypes live. Its Build 🧱 / macOS 🍏 job log is the acceptance evidence; findings from it get fixed here before the PR leaves draft.

@zackees

zackees commented Oct 28, 2026

Copy link
Copy Markdown
Member Author

macOS app lane evidence from dispatch run 40783045400 on a8bb455d1:

job result
Build 🧱 / macOS 🍏 (arm64) (123149618782) success
Build 🧱 / macOS 🍏 (x86_64) (123149618723) success

-Wstrict-prototypes diagnostics in the arm64 job log: 0. No warning: line of any kind. The full tree built, linked and signed, so the pins are not load-bearing for the build.

The caveat that keeps this draft. That job reports note: 321 hits / 670 cacheable tasks (48%). zccache does not key on the compile flags, so roughly half the TUs replayed diagnostics captured while the pins were still in place — a hit cannot show a warning the pinned build suppressed. The executed half (the C unity groups, libobs-opengl's macOS backend, frontend/) is genuinely clean at the rule; the replayed half is not evidence either way.

So the honest state is: first-party C compiled with the warnings live shows nothing, and the cached half needs one cold-object-cache macOS build to close. I am not marking this ready on a 48%-replayed log — that is exactly the false-clean shape #2624 was filed for. If you would rather take it on the executed-half argument, say so and I will queue it; otherwise the remaining step is a cache-cold macOS build, which needs a cache-key change or a one-off purge rather than a worker edit.

@zackees

zackees commented Oct 29, 2026

Copy link
Copy Markdown
Member Author

macOS acceptance evidence is in: both pins were dead

Scheduled dispatch run 40783045400 on a8bb455d — the commit that drops both pins. (bbd83374, pushed after it, is the gersemi reflow only: no flag or source change, so the evidence still covers HEAD.)

  • Build 🧱 / macOS 🍏 (arm64) and (x86_64): success. The lane compiled the affected targets — libobs-opengl sources compiled and libobs-opengl.dylib linked, 23 libobs-objects compile entries, 396 Compiling lines in the arm64 log.
  • Zero -Wstrict-prototypes diagnostics in either architecture's log, and no clang warnings of any kind. The only warnings are Xcode bundle-identifier and deprecation notices.
  • That is a pass, not a silence: cmake/common/compiler_common.cmake adds -Wstrict-prototypes to clang's C options (:74) and sets CMAKE_COMPILE_WARNING_AS_ERROR ON (:95-96), so any finding in those TUs fails the build.
  • Same run: Ubuntu (OBS-Studio-Rust), Windows x64 + arm64, Flatpak, Qt Frontend Linux and all Tier 2 jobs were green. The run's two failures are unrelated to this branch: CEF Chromium Support (nightly CEF 7871 vs extended-stable 8078 drift, also red on master) and Fast Gate lint on a8bb455d, which the following gersemi commit fixed.

Both entries were dead pins, so this completes the issue's macOS/AppleClang remainder with no source change. Flipping the body to Fixes #2624, marking ready and queueing.

@zackees
zackees marked this pull request as ready for review October 29, 2026 01:04
@zackees
zackees added this pull request to the merge queue Oct 29, 2026
Merged via the queue into master with commit 5a5c288 Oct 29, 2026
33 checks passed
@zackees
zackees deleted the infra/2624-clang-prototype-pins branch October 29, 2026 01:29
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.

build(cmake): Drop -Wno-missing-prototypes and -Wno-strict-prototypes

1 participant