Repository navigation
build(obs-ffmpeg): state the two macOS conversions #2865 missed (#2869) - #2870
Conversation
#2865 turned on -Wconversion/-Wsign-conversion/-Wfloat-conversion for the obs-ffmpeg target and fixed the 109 diagnostics its Linux replay reported, but that replay cannot see two macOS-only diagnostics: the plugin target is not built in the Linux Tier 2 tree, and clang (with the Xcode warning set and CMAKE_COMPILE_WARNING_AS_ERROR) reports both as errors. The nightly Scheduled run 40825610950 at 5c3a91b is red in `Build macOS (x86_64)` and `Analyze macOS (clang-analyze)` because of them: - obs-ffmpeg-rist.h:175 passes RISTContext::profile (an int field holding RIST_PROFILE_MAIN) to rist_sender_create(), which takes enum rist_profile. - obs-ffmpeg-source.c.h:437 assigns obs_data_get_int() (a long long) to `enum video_range_type range`. Both keep the value the code already computed; no -Wno-* pin returns. Fixes #2869 Co-authored-by: Hermes Agent <[email protected]>
|
macOS evidence is dispatched: Scheduled 40827510045 on this branch. PR CI does not select the macOS lanes for a I will queue this PR ( |
|
macOS GREEN on the branch: Scheduled 40827510045 — PR CI is green (Fast Gate, Format, Tier 2 Linux ON/OFF plus both serial shards, Validate Data) and auto-merge is on. Handed off to the coordinator — the next nightly on master is the confirmation. |
What
Master's macOS builds are red at
5c3a91bb7(#2865's merge):Build 🧱 / macOS 🍏 (x86_64)andAnalyze 🔬 / macOS 🍏 (clang-analyze)fail on two conversion diagnostics the target's new warning groups expose but #2865's Linux replay could not see. Fixes #2869.RED
Real compiler output from nightly run 40825610950 (head
5c3a91bb7):Build macOS (x86_64)plugins/obs-ffmpeg/obs-ffmpeg-rist.h:175: implicit conversion changes signedness:inttoenum rist_profile[-Werror,-Wsign-conversion]Analyze macOS (clang-analyze)plugins/obs-ffmpeg/obs-ffmpeg-source.c.h:437: implicit conversion loses integer precision:long longtoenum video_range_type[-Wshorten-64-to-32]Both arrive with the three conversion groups #2865 enabled on the target and macOS's
CMAKE_COMPILE_WARNING_AS_ERROR; the Linux Tier 2 tree does not configure the plugin targets, so neither was in the 109-diagnostic replay.GREEN
Two explicit casts at the boundaries, no behaviour change, no
-Wno-*back:obs-ffmpeg-rist.h:RISTContext::profileis anintfield holdingRIST_PROFILE_MAIN;rist_sender_create()takesenum rist_profile, so the call states(enum rist_profile)s->profile.obs-ffmpeg-source.c.h:rangeis anenum video_range_type;obs_data_get_int()returnslong long, so the assignment states(enum video_range_type)— the same shape as the(int)obs_data_get_int(...)line directly below it.Checks
clang-format --dry-run --Werrorclean on both files.-fsyntax-onlyreplay of theobs-ffmpeg.source+.h.cunity TU with-Wconversion -Wsign-conversion -Wfloat-conversion -Wshorten-64-to-32reports no conversion diagnostics before or after the cast (clang 21 on Linux does not reproduce AppleClang'slong long-> enum finding), so the macOS lane in CI is the evidence for both.Build macOS (x86_64)andAnalyze macOScompileobs-ffmpegwith the groups on and-Werror; no other TU changes.Tiers: no Tier 1/2/3/4 applies — this is a warning-boundary change with no behaviour difference. User-visible behaviour is unchanged, so no
docs/features.mdline.