[Webkit-unassigned] [Bug 271752] New: [LibWebRTC] Build fails with clang-18 on Linux
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 27 02:32:36 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=271752
Bug ID: 271752
Summary: [LibWebRTC] Build fails with clang-18 on Linux
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Plug-ins
Assignee: webkit-unassigned at lists.webkit.org
Reporter: philn at igalia.com
CC: youennf at gmail.com
/var/home/phil/WebKit/Source/ThirdParty/libwebrtc/Source/webrtc/pc/legacy_stats_collector.cc:191:54: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-n
arrowing-const-reference]
191 | {StatsReport::kStatsValueNameTotalAudioEnergy, info.total_output_energy},
| ^~~~~~~~~~~~~~~~~~~~~~~~
/var/home/phil/WebKit/Source/ThirdParty/libwebrtc/Source/webrtc/pc/legacy_stats_collector.cc:193:8: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-na
rrowing-const-reference]
193 | info.total_output_duration}};
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/home/phil/WebKit/Source/ThirdParty/libwebrtc/Source/webrtc/pc/legacy_stats_collector.cc:247:54: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-n
arrowing-const-reference]
247 | {StatsReport::kStatsValueNameTotalAudioEnergy, info.total_input_energy},
| ^~~~~~~~~~~~~~~~~~~~~~~
/var/home/phil/WebKit/Source/ThirdParty/libwebrtc/Source/webrtc/pc/legacy_stats_collector.cc:249:8: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-na
rrowing-const-reference]
249 | info.total_input_duration}};
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/home/phil/WebKit/Source/ThirdParty/libwebrtc/Source/webrtc/pc/legacy_stats_collector.cc:343:51: error: non-constant-expression cannot be narrowed from type 'uint32_t' (aka 'unsigned int') to 'int' in initia
lizer list [-Wc++11-narrowing-const-reference]
343 | {StatsReport::kStatsValueNameFramesDecoded, info.frames_decoded},
| ^~~~~~~~~~~~~~~~~~~
/var/home/phil/WebKit/Source/ThirdParty/libwebrtc/Source/webrtc/pc/legacy_stats_collector.cc:387:52: error: type 'double' cannot be narrowed to 'int' in initializer list [-Wc++11-narrowing-const-reference]
387 | {StatsReport::kStatsValueNameFrameRateInput, round(info.framerate_input)},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/home/phil/WebKit/Source/ThirdParty/libwebrtc/Source/webrtc/pc/legacy_stats_collector.cc:390:51: error: non-constant-expression cannot be narrowed from type 'uint32_t' (aka 'unsigned int') to 'int' in initia
lizer list [-Wc++11-narrowing-const-reference]
390 | {StatsReport::kStatsValueNameNacksReceived, info.nacks_received},
| ^~~~~~~~~~~~~~~~~~~
/var/home/phil/WebKit/Source/ThirdParty/libwebrtc/Source/webrtc/pc/legacy_stats_collector.cc:394:51: error: non-constant-expression cannot be narrowed from type 'uint32_t' (aka 'unsigned int') to 'int' in initia
lizer list [-Wc++11-narrowing-const-reference]
394 | {StatsReport::kStatsValueNameFramesEncoded, info.frames_encoded},
| ^~~~~~~~~~~~~~~~~~~
/var/home/phil/WebKit/Source/ThirdParty/libwebrtc/Source/webrtc/pc/legacy_stats_collector.cc:395:52: error: non-constant-expression cannot be narrowed from type 'uint32_t' (aka 'unsigned int') to 'int' in initia
lizer list [-Wc++11-narrowing-const-reference]
395 | {StatsReport::kStatsValueNameHugeFramesSent, info.huge_frames_sent},
| ^~~~~~~~~~~~~~~~~~~~~
/var/home/phil/WebKit/Source/ThirdParty/libwebrtc/Source/webrtc/pc/legacy_stats_collector.cc:783:51: error: non-constant-expression cannot be narrowed from type 'size_t' (aka 'unsigned long') to 'long' in initia
lizer list [-Wc++11-narrowing-const-reference]
783 | {StatsReport::kStatsValueNameBytesReceived, info.recv_total_bytes},
| ^~~~~~~~~~~~~~~~~~~~~
/var/home/phil/WebKit/Source/ThirdParty/libwebrtc/Source/webrtc/pc/legacy_stats_collector.cc:784:47: error: non-constant-expression cannot be narrowed from type 'size_t' (aka 'unsigned long') to 'long' in initia
lizer list [-Wc++11-narrowing-const-reference]
784 | {StatsReport::kStatsValueNameBytesSent, info.sent_total_bytes},
| ^~~~~~~~~~~~~~~~~~~~~
/var/home/phil/WebKit/Source/ThirdParty/libwebrtc/Source/webrtc/pc/legacy_stats_collector.cc:785:49: error: non-constant-expression cannot be narrowed from type 'size_t' (aka 'unsigned long') to 'long' in initia
lizer list [-Wc++11-narrowing-const-reference]
785 | {StatsReport::kStatsValueNamePacketsSent, info.sent_total_packets},
| ^~~~~~~~~~~~~~~~~~~~~~~
and so on.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240327/a75f5340/attachment-0001.htm>
More information about the webkit-unassigned
mailing list