Repository navigation
build(frontend): state the row-index conversion the release lane stops on (#2938) - #2971
Conversation
…s on (#2938) `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. #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 #2938, Refs #2625.
|
GREEN evidence: Handing off to the coordinator. |
zackees
left a comment
There was a problem hiding this comment.
Coordinator review.
Correctness. deleted.size() is a qsizetype and the loop index is an int row, so the cast is the conversion the compiler already performs. The empty case is unchanged: (int)0 - 1 is -1 and the loop body never runs, exactly as with the implicit conversion before. No value can change — the indices in deleted are model rows added by this same function, so they are far inside int range.
Idiom. (int) matches the rest of this file: lines 20, 26, 33, 42-79, 108, 216-229 and 246 all use the same functional cast, and clang-format leaves it as is. A static_cast<int> here would be the odd one out.
Evidence. Build 🧱 / Qt Frontend Linux 🐧 is green on the head, which is the lane that compiles this unity TU with the frontend target's group; the asan lane is the remaining check and I will queue the PR when it passes.
No change requested.
frontend/utility/ExtraBrowsersModel.cpp.hppcannot compile in the app lanes:CheckToRemove()builds its loop index fromdeleted.size()(aqsizetype), and the frontend target's conversion group (#2909) rejects it. #2940 stated lines 20, 33 and 108 of this file and left line 190, which is the last site the release lane reports for this translation unit.RED
Release OBS-Studio-Rustrun 40906899118 on master3bff1d7c, jobBuild linux x86_64(2026-10-29 16:13 UTC), and the same site again inRelease gate 🚦 / Flatpak 📦(16:27 UTC):The other three diagnostics in that job's log (lines 20, 33, 108) were fixed by #2940, so this is the one left in the file.
I could not replay the compile locally: this box has no Qt 6 development files (
pkg-config Qt6Widgetsfinds nothing), so the recorded lane log above is the RED evidence and PR CI'sSanitize 🧪 / asan 🧪lane (which selects on a compile input below the ratchetedfrontenddirectory) is the GREEN confirmation of the frontend target compiling with the group.GREEN
One explicit cast, in the idiom the same file already uses at lines 20, 33, 108 and 246:
No behavior change: the index is a row in the model's own item list, bounded by the model's item count, and
CheckToRemove()'s caller owns the same list../lint:== lane lint: ok (53.5s).Scope
This is a conversion statement, not a flag change: the frontend target keeps its group (a
-Wno-conversionhere would undo #2909/#2944 for all 63 frontend files). The macOS lanes still stop in the.depsQt 6.11 headers, which is the pending decision on #2950 and is not touched here.Refs #2938, Refs #2625.