Repository navigation
build(clang): drop the last two -Wno-strict-prototypes pins (#2624) - #2850
Conversation
#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
|
Dispatch for the evidence: |
|
macOS app lane evidence from dispatch run 40783045400 on
The caveat that keeps this draft. That job reports 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. |
macOS acceptance evidence is in: both pins were deadScheduled dispatch run 40783045400 on
Both entries were dead pins, so this completes the issue's macOS/AppleClang remainder with no source change. Flipping the body to |
Drops the last two
-Wno-strict-prototypespins #2678 left behind, both clang-only:libobs-opengl/CMakeLists.txt: the target option (AppleClang,Clang), which applied on Linux clang too.libobs/cmake/os-macos.cmake: the macOS PUBLIC list onlibobs-objectsandlibobs.-Wno-shorten-64-to-32stays — different diagnostic, out of build(cmake): Drop -Wno-missing-prototypes and -Wno-strict-prototypes #2624's scope.The Linux half of #2624 is measured and closed (
ci/warning_findings.pyreplay 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-prototypeslive; 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-prototypesdiagnostic, atCMAKE_COMPILE_WARNING_AS_ERROR ON(evidence and links in the comment below), so no source change was needed. No user-visible behaviour change, so nodocs/features.mdline.Fixes #2624