<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>271752</bug_id>
          
          <creation_ts>2024-03-27 02:32:36 -0700</creation_ts>
          <short_desc>[LibWebRTC] Build fails with clang-18 on Linux</short_desc>
          <delta_ts>2024-05-02 08:34:16 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Plug-ins</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philippe Normand">philn</reporter>
          <assigned_to name="Philippe Normand">philn</assigned_to>
          <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2024123</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2024-03-27 02:32:36 -0700</bug_when>
    <thetext>/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 &apos;double&apos; to &apos;float&apos; 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 &apos;double&apos; to &apos;float&apos; 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 &apos;double&apos; to &apos;float&apos; 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 &apos;double&apos; to &apos;float&apos; 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 &apos;uint32_t&apos; (aka &apos;unsigned int&apos;) to &apos;int&apos; 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 &apos;double&apos; cannot be narrowed to &apos;int&apos; 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 &apos;uint32_t&apos; (aka &apos;unsigned int&apos;) to &apos;int&apos; 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 &apos;uint32_t&apos; (aka &apos;unsigned int&apos;) to &apos;int&apos; 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 &apos;uint32_t&apos; (aka &apos;unsigned int&apos;) to &apos;int&apos; 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 &apos;size_t&apos; (aka &apos;unsigned long&apos;) to &apos;long&apos; 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 &apos;size_t&apos; (aka &apos;unsigned long&apos;) to &apos;long&apos; 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 &apos;size_t&apos; (aka &apos;unsigned long&apos;) to &apos;long&apos; in initia
lizer list [-Wc++11-narrowing-const-reference]                                                                                                                                                                     
  785 |       {StatsReport::kStatsValueNamePacketsSent, info.sent_total_packets},                                                                                                                                  
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~

and so on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2024129</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2024-03-27 03:13:07 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/26507</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2024303</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-03-27 14:21:37 -0700</bug_when>
    <thetext>Committed 276753@main (753783aa83f4): &lt;https://commits.webkit.org/276753@main&gt;

Reviewed commits have been landed. Closing PR #26507 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2024304</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-03-27 14:22:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/125510007&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2032791</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2024-05-02 08:34:16 -0700</bug_when>
    <thetext>*** Bug 273615 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>