<?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>189732</bug_id>
          
          <creation_ts>2018-09-18 21:18:29 -0700</creation_ts>
          <short_desc>[Win][Clang] UNUSED_PARAM(this) causes compilation error of &quot;cannot take the address of an rvalue of type&quot;</short_desc>
          <delta_ts>2018-09-20 19:51:36 -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>New Bugs</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>
          
          <blocked>171618</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Fujii Hironori">fujii</assigned_to>
          <cc>achristensen</cc>
    
    <cc>benjamin</cc>
    
    <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>dbates</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>paroga</cc>
    
    <cc>pvollan</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1460850</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2018-09-18 21:18:29 -0700</bug_when>
    <thetext>[Win][Clang] UNUSED_PARAM(this) causes compilation error of &quot;cannot take the address of an rvalue of type&quot;

While doing Bug 171618, following compilation error is reported.

&gt; [16/31] Building CXX object Source\WebKit\CMakeFiles\WebKit.dir\__\__\DerivedSources\WebKit\unified-sources\UnifiedSource22.cpp.obj
&gt; FAILED: Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource22.cpp.obj 
&gt; C:\tools\llvm\bin\clang-cl.exe (...) -c DerivedSources\WebKit\unified-sources\UnifiedSource22.cpp
&gt; In file included from DerivedSources\WebKit\unified-sources\UnifiedSource22.cpp:5:
&gt; ..\..\Source\WebKit\UIProcess/Network/NetworkProcessProxy.cpp(154,9):  error: cannot take the address of an rvalue of type &apos;WebKit::NetworkProcessProxy *&apos;
&gt;         UNUSED_PARAM(this);
&gt;         ^            ~~~~
&gt; DerivedSources\ForwardingHeaders\wtf/Compiler.h(367,38):  note: expanded from macro &apos;UNUSED_PARAM&apos;
&gt; #define UNUSED_PARAM(variable) (void)&amp;variable
&gt;                                      ^~~~~~~~~
&gt; In file included from DerivedSources\WebKit\unified-sources\UnifiedSource22.cpp:5:
&gt; ..\..\Source\WebKit\UIProcess/Network/NetworkProcessProxy.cpp(171,9):  error: cannot take the address of an rvalue of type &apos;WebKit::NetworkProcessProxy *&apos;
&gt;         UNUSED_PARAM(this);
&gt;         ^            ~~~~
&gt; DerivedSources\ForwardingHeaders\wtf/Compiler.h(367,38):  note: expanded from macro &apos;UNUSED_PARAM&apos;
&gt; #define UNUSED_PARAM(variable) (void)&amp;variable
&gt;                                      ^~~~~~~~~
&gt; In file included from DerivedSources\WebKit\unified-sources\UnifiedSource22.cpp:5:
&gt; ..\..\Source\WebKit\UIProcess/Network/NetworkProcessProxy.cpp(189,9):  error: cannot take the address of an rvalue of type &apos;WebKit::NetworkProcessProxy *&apos;
&gt;         UNUSED_PARAM(this);
&gt;         ^            ~~~~
&gt; DerivedSources\ForwardingHeaders\wtf/Compiler.h(367,38):  note: expanded from macro &apos;UNUSED_PARAM&apos;
&gt; #define UNUSED_PARAM(variable) (void)&amp;variable
&gt;                                      ^~~~~~~~~
&gt; 3 errors generated.


See Also:

Bug 113440 – [WinCE] Add workaround for UNUSED_PARAM()
Bug 115350 – [WIN] Add workaround for UNUSED_PARAM()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1460851</commentid>
    <comment_count>1</comment_count>
      <attachid>350092</attachid>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2018-09-18 21:24:13 -0700</bug_when>
    <thetext>Created attachment 350092
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1461573</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2018-09-20 15:49:09 -0700</bug_when>
    <thetext>R?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1461668</commentid>
    <comment_count>3</comment_count>
      <attachid>350092</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2018-09-20 19:28:47 -0700</bug_when>
    <thetext>Comment on attachment 350092
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1461674</commentid>
    <comment_count>4</comment_count>
      <attachid>350092</attachid>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2018-09-20 19:50:45 -0700</bug_when>
    <thetext>Comment on attachment 350092
Patch

Clearing flags on attachment: 350092

Committed r236302: &lt;https://trac.webkit.org/changeset/236302&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1461675</commentid>
    <comment_count>5</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2018-09-20 19:50:48 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1461676</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-09-20 19:51:36 -0700</bug_when>
    <thetext>&lt;rdar://problem/44665709&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>350092</attachid>
            <date>2018-09-18 21:24:13 -0700</date>
            <delta_ts>2018-09-20 19:50:45 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-189732-20180919132412.patch</filename>
            <type>text/plain</type>
            <size>1379</size>
            <attacher name="Fujii Hironori">fujii</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjM2MTYxCmRpZmYgLS1naXQgYS9Tb3VyY2UvV1RGL0NoYW5n
ZUxvZyBiL1NvdXJjZS9XVEYvQ2hhbmdlTG9nCmluZGV4IGQzMDhiZTE5MjgyYTlhMzEwZTg0MDRi
MTA0NGQwNWNkZTQ5ZGFkY2UuLjU3OTkzYTc0MGYzMmRlMDI2Mjg0ZDNjODY4YWZlOTBiZGJmNzYx
NmYgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XVEYvQ2hhbmdlTG9nCisrKyBiL1NvdXJjZS9XVEYvQ2hh
bmdlTG9nCkBAIC0xLDMgKzEsMTYgQEAKKzIwMTgtMDktMTggIEZ1amlpIEhpcm9ub3JpICA8SGly
b25vcmkuRnVqaWlAc29ueS5jb20+CisKKyAgICAgICAgW1dpbl1bQ2xhbmddIFVOVVNFRF9QQVJB
TSh0aGlzKSBjYXVzZXMgY29tcGlsYXRpb24gZXJyb3Igb2YgImNhbm5vdCB0YWtlIHRoZSBhZGRy
ZXNzIG9mIGFuIHJ2YWx1ZSBvZiB0eXBlIgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9y
Zy9zaG93X2J1Zy5jZ2k/aWQ9MTg5NzMyCisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChP
T1BTISkuCisKKyAgICAgICAgQ2xhbmcgZm9yIFdpbmRvd3MgY2FuJ3QgY29tcGlsZSB0aGUgTVNW
QyB3b3JrYXJvdW5kIG9mCisgICAgICAgIFVOVVNFRF9QQVJBTSB3aGljaCBoYXMgYmVlbiBpbnRy
b2R1Y2VkIGZvciBXa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