Skip to content

fix(frontend): state the volume meter's nanosecond delta conversion (#3096) - #3100

Closed
zackees wants to merge 1 commit into
masterfrom
fix/3096-volume-meter-conversion
Closed

zackees wants to merge 1 commit into
masterfrom
fix/3096-volume-meter-conversion

Conversation

@zackees

@zackees zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member

One of the two diagnostics that stop the macOS app lane on master.

frontend.widgets+.hpp.cpp stops at frontend/components/VolumeMeterSnapshot.hpp:32:

implicit conversion from 'uint64_t' (aka 'unsigned long long') to 'double' may lose precision [-Werror,-Wimplicit-int-float-conversion]
   32 |   double secondsSinceLastUpdate = (now - lastUpdate) * 0.000000001;

AppleClang reports that group without any opt-in and the lane treats warnings as errors, so the app target cannot build on either macOS runner. The delta is nanoseconds and the value is meant as seconds, so the conversion is stated at the call site — the shape #2625 asks for in frontend code.

Verified on the macOS runner, not here. Scheduled dispatch run 41119526629 on branch fix/3096-macos-app-lane-conversion (same hunk plus a CMake experiment, PR #3099) compiled frontend.widgets+.hpp.cpp at 20:10:04 with no diagnostic on Build 🧱 / macOS 🍏 (x86_64).

Refs #3096, not Fixes: the same job still stops further on in Qt 6.11's own headers (qversiontagging.h:80, qnamespace.h:1926/1930/1935, -Werror,-Wsign-conversion) — the other half of the issue, which this PR deliberately does not guess at. Evidence for what that half is not is in the issue.

Test cost: no new tests.

…3096)

The macOS app lane stops on frontend.widgets+.hpp.cpp at
frontend/components/VolumeMeterSnapshot.hpp:32:

    implicit conversion from 'uint64_t' (aka 'unsigned long long') to 'double'
    may lose precision [-Werror,-Wimplicit-int-float-conversion]

AppleClang reports that group without an opt-in, and the lane treats warnings as
errors, so the app target cannot build on either macOS runner. The delta is
nanoseconds and the value is meant as seconds: state the conversion at the call
site, where #2625 keeps sign and float conversions for frontend code.

Verified on the macOS runner: scheduled.yaml dispatch on a branch carrying this
hunk (run 41119526629) compiled frontend.widgets+.hpp.cpp at 20:10:04 with no
diagnostic; the lane still stops further on, in Qt 6.11's own headers, which is
the separate half of #3096.

Refs #3096
@zackees

zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

Superseded by #3099, which carries the same VolumeMeterSnapshot.hpp hunk plus the frontend/CMakeLists.txt branch fix for the other half of #3096. Closing this duplicate so the two do not race on the same line.

@zackees zackees closed this Oct 30, 2026
@zackees
zackees deleted the fix/3096-volume-meter-conversion branch October 30, 2026 20:17
@zackees

zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

Reopened: the two closures raced. I closed #3099 at 20:17:45Z because its macOS run disproved its own CMake hypothesis (see #3096), and another worker tick closed this PR at 20:17:48Z as a duplicate of #3099 — pointing the other way. #3099 stays closed: it carries an experiment that does not fix the lane. This PR is the one with the verified hunk; the macOS runner compiled frontend.widgets+.hpp.cpp clean with it in run 41119526629.

@zackees
zackees restored the fix/3096-volume-meter-conversion branch October 30, 2026 20:54
@zackees zackees reopened this Oct 30, 2026
@zackees
zackees enabled auto-merge October 30, 2026 20:55
@zackees

zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

Superseded by #3102, closing rather than queueing two copies of the same hunk.

This PR is the frontend/components/VolumeMeterSnapshot.hpp conversion alone; #3102 carries the identical change plus the shared/properties-view INTERFACE-pin fix and the frontend/CMakeLists.txt branch, and has macOS app-lane acceptance (dispatching scheduled.yaml, run 41123124035: both app builds and clang-analyze green). Two open PRs touching that one file would make the second one DIRTY for no benefit.

The evidence for this half stands as recorded on #3096: the TU compiles on both macOS runners with the conversion stated at the call site.

@zackees zackees closed this Oct 30, 2026
auto-merge was automatically disabled October 30, 2026 21:09

Pull request was closed

@zackees
zackees deleted the fix/3096-volume-meter-conversion branch October 30, 2026 21:09
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.

1 participant