<?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>250576</bug_id>
          
          <creation_ts>2023-01-13 07:46:38 -0800</creation_ts>
          <short_desc>[WebRTC] Fix -Wunused-but-set-variable warnings in the libvpx project</short_desc>
          <delta_ts>2023-01-14 09:02:48 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebRTC</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>
          <dependson>250431</dependson>
          <blocked>250622</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="David Kilzer (:ddkilzer)">ddkilzer</assigned_to>
          <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1925346</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2023-01-13 07:46:38 -0800</bug_when>
    <thetext>Fix -Wunused-but-set-variable warnings in the libvpx project:

/Volumes/Data/worker/macOS-AppleSilicon-Ventura-Debug-Build-EWS/build/Source/ThirdParty/libwebrtc/Source/third_party/libvpx/source/libvpx/vp9/encoder/vp9_mbgraph.c:246:9: error: variable &apos;arf_y_in_offset&apos; set but not used [-Werror,-Wunused-but-set-variable]
    int arf_y_in_offset = arf_y_offset;
        ^
/Volumes/Data/worker/macOS-AppleSilicon-Ventura-Debug-Build-EWS/build/Source/ThirdParty/libwebrtc/Source/third_party/libvpx/source/libvpx/vp9/encoder/vp9_mbgraph.c:247:9: error: variable &apos;gld_y_in_offset&apos; set but not used [-Werror,-Wunused-but-set-variable]
    int gld_y_in_offset = gld_y_offset;
        ^

Originally found by this EWS build for Bug 250431:  &lt;https://ews-build.webkit.org/#/builders/85/builds/2919&gt;

Same as upstream commit:

  vp9,update_mbgraph_frame_stats: rm unused variables
  https://github.com/webmproject/libvpx/commit/a165f4ba64ec8c992ca57a1b4444cd4a19527dde</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925347</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-01-13 07:47:03 -0800</bug_when>
    <thetext>&lt;rdar://problem/104224212&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925350</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2023-01-13 07:57:13 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/8624</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925364</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2023-01-13 08:44:40 -0800</bug_when>
    <thetext>(In reply to David Kilzer (:ddkilzer) from comment #2)
&gt; Pull request: https://github.com/WebKit/WebKit/pull/8624

Playing whack-a-mole now (not sure why I don&apos;t see these all at once):

/Volumes/Data/worker/iOS-16-Build-EWS/build/Source/ThirdParty/libwebrtc/Source/third_party/libvpx/source/libvpx/vp9/encoder/vp9_encodeframe.c:831:14: error: variable &apos;ysignal&apos; set but not used [-Werror,-Wunused-but-set-variable]
    uint8_t *ysignal = x-&gt;plane[0].src.buf;
             ^
/Volumes/Data/worker/iOS-16-Build-EWS/build/Source/ThirdParty/libwebrtc/Source/third_party/libvpx/source/libvpx/vp9/encoder/vp9_encodeframe.c:832:14: error: variable &apos;usignal&apos; set but not used [-Werror,-Wunused-but-set-variable]
    uint8_t *usignal = x-&gt;plane[1].src.buf;
             ^
/Volumes/Data/worker/iOS-16-Build-EWS/build/Source/ThirdParty/libwebrtc/Source/third_party/libvpx/source/libvpx/vp9/encoder/vp9_encodeframe.c:833:14: error: variable &apos;vsignal&apos; set but not used [-Werror,-Wunused-but-set-variable]
    uint8_t *vsignal = x-&gt;plane[2].src.buf;
             ^

This was fixed in upstream commit:

  Fix some instances of -Wunused-but-set-variable.
  https://github.com/webmproject/libvpx/commit/fc04a9491ebaaa8e2b1c7c8e0587c8a1873531d6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925537</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-13 21:35:31 -0800</bug_when>
    <thetext>Committed 258906@main (fa03411b2de6): &lt;https://commits.webkit.org/258906@main&gt;

Reviewed commits have been landed. Closing PR #8624 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>