maintainer-feedback requested: [Bug 276997] www/qt6-webengine: fix build with clang 18
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Feb 12 08:29:10 GMT 2024
Bugzilla Automation <bugzilla at FreeBSD.org> has asked freebsd-kde (group)
<kde at FreeBSD.org> for maintainer-feedback:
Bug 276997: www/qt6-webengine: fix build with clang 18
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276997
--- Description ---
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_par
ty/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_par
ty/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.
More information about the kde-freebsd
mailing list