[Bug 276997] www/qt6-webengine: fix build with clang 18

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Feb 13 18:01:54 GMT 2024


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276997

--- Comment #4 from commit-hook at FreeBSD.org ---
A commit in branch 2024Q1 references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=0569d74e5287a2933b0e19027f7524a4d247bf17

commit 0569d74e5287a2933b0e19027f7524a4d247bf17
Author:     Dimitry Andric <dim at FreeBSD.org>
AuthorDate: 2024-02-12 08:17:56 +0000
Commit:     Dimitry Andric <dim at FreeBSD.org>
CommitDate: 2024-02-13 18:00:38 +0000

    www/qt6-webengine: fix build with clang 18

    Clang 18 has become more stringent about narrowing in initializer lists,
    resulting in errors when building www/qt6-webengine:

     
../../../../../qtwebengine-everywhere-src-6.6.1/src/3rdparty/chromium/third_party/webrtc/pc/legacy_stats_collector.cc:192:54:
error: non-constant-expression cannot be narrowed from type 'double' to 'float'
in initializer list [-Wc++11-narrowing-const-reference]
        192 |       {StatsReport::kStatsValueNameTotalAudioEnergy,
info.total_output_energy},
            |                                                     
^~~~~~~~~~~~~~~~~~~~~~~~
     
../../../../../qtwebengine-everywhere-src-6.6.1/src/3rdparty/chromium/third_party/webrtc/pc/legacy_stats_collector.cc:194:8:
error: non-constant-expression cannot be narrowed from type 'double' to 'float'
in initializer list [-Wc++11-narrowing-const-reference]
        194 |        info.total_output_duration}};
            |        ^~~~~~~~~~~~~~~~~~~~~~~~~~

    Cherry-pick https://webrtc.googlesource.com/src/+/267f9bdd53 into the
    thirdparty directory, which fixes these errors.

    PR:             276997
    MFH:            2024Q1
    (cherry picked from commit 0707093c0a5df15911d72c3b2e8001b3428f2e2e)

 ...rty_webrtc_pc_legacy__stats__collector.cc (new) | 114 +++++++++++++++++++++
 1 file changed, 114 insertions(+)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list