Repository navigation
build: state the frontend conversion sites the app lanes stop on (#2938) - #2940
Conversation
Master's app lanes stop in the frontend C++ compile now that #2909 turned on -Wconversion/-Wsign-conversion for the obs-studio target: ExtraBrowsersModel.cpp.hpp:20,33,108,246 'qsizetype' to 'int' may change value qt-host-{macos,posix,windows}.cpp.hpp 'int' to 'uint32_t' in translate_modifiers `items.size()`/`count()` is `qsizetype`, and `translate_modifiers()` returns `uint32_t` while its accumulator was `int`; both are stated at the call site, with no flag change.
|
Worker tick (2026-10-29): the RED this PR answers is measured on master's own app lanes, and the branch is rebased clean ( Evidence recap: Sibling PR #2944 restores the global pins for the app target so the lanes go green now; this one states the sites, so the group can be re-enabled file by file. Neither conflicts: different files. |
…s on (obs-rust#2938) (obs-rust#2971) `ExtraBrowsersModel::CheckToRemove()` builds its loop index from `deleted.size()`, which is a `qsizetype`, so the release lane's frontend compile stops on it: ``` frontend/utility/ExtraBrowsersModel.cpp.hpp:190:37: error: conversion from 'qsizetype' {aka 'long long int'} to 'int' may change value [-Werror=conversion] ``` RED evidence: `Release OBS-Studio-Rust` run 40906899118 on master `3bff1d7c`, job `Build linux x86_64` (and the same site again in `Release gate / Flatpak`), 2026-10-29 16:13 UTC. obs-rust#2940 stated the three other sites in this file (lines 20, 33, 108) and this one was left, so the file still cannot compile with the frontend target's conversion group. GREEN: the cast matches the same file's idiom (`(int)items.size()` at 20, 33, 108, 246). No behavior change: the list is a row index that starts at the model's own item count. `./lint` is clean. Refs obs-rust#2938, Refs obs-rust#2625.
Refs #2938 (a first slice; the issue stays open until every group compiles).
RED (how it fails)
Master's app lanes fail in the frontend C++ compile after #2909 turned on
-Wconversion;-Wsign-conversion;-Wfloat-conversionfor theobs-studiotargetwith 63 files still unconverted. Reported on #2938 from
workflow_dispatchofscheduled.yamlonfix/2921-mp4-mux-conversions:The same macOS error reproduces on current master in my own dispatch
(
ci/macos-evidence-2921-2928, run 40908013605,job
Build 🧱 / macOS 🍏 (x86_64)), so it is master, not another PR.GREEN (what this changes)
frontend/utility/ExtraBrowsersModel.cpp.hpp: the fouritems.size()/items.count()results are cast tointat the assignment, matching theintrow indices the model already uses.shared/qt/platform/qt-host-{macos,posix,windows}.cpp.hpp:translate_modifiers()returnsuint32_t, so its accumulator is nowuint32_tinstead ofint. The flag values are unchanged; the ORs are thesame
INTERACT_*bits.No compiler flag, pin or target change: the conversions are stated at the call
site.
Local:
./lintclean. The Linux Qt lane on this PR is the check that theExtraBrowsersModelfile compiles under-Wconversion; the macOS/Ubuntu applanes only run from
scheduled.yaml, so a dispatch on this branch follows oncethis lands its first feedback. The remaining unconverted frontend groups are
the rest of #2938.
Scope after #2944
#2944 removes #2909's second conversion block, so the app target is back on the
global pins for
-Wconversion/-Wfloat-conversionand the Ubuntu/Flatpak lanesstop failing on
ExtraBrowsersModel. This PR still carries the part that isneeded: the
qt-host-*.cpp.hpptranslate_modifiers()accumulator is a-Wsign-conversionfinding, the group the app target keeps, and it is whatmaster's macOS lanes report (they were already red before #2909). Keep the
ExtraBrowsersModelcasts — they are the first group of the eventual-Wconversionratchet — and drop this PR's claim about the Qt lane being theproof for that group.