Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 2024 08:29:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 276997] www/qt6-webengine: fix build with clang 18
Message-ID:  <bug-276997-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276997

            Bug ID: 276997
           Summary: www/qt6-webengine: fix build with clang 18
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: kde@FreeBSD.org
          Reporter: dim@FreeBSD.org
          Assignee: kde@FreeBSD.org
             Flags: maintainer-feedback?(kde@FreeBSD.org)

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

=20
../../../../../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 'fl=
oat'
in initializer list [-Wc++11-narrowing-const-reference]
    192 |       {StatsReport::kStatsValueNameTotalAudioEnergy,
info.total_output_energy},
        |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20
^~~~~~~~~~~~~~~~~~~~~~~~
=20
../../../../../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 'fl=
oat'
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276997-7788>