Changeset 236302 in webkit


Ignore:
Timestamp:
Sep 20, 2018 7:49:50 PM (6 years ago)
Author:
Fujii Hironori
Message:

[Win][Clang] UNUSED_PARAM(this) causes compilation error of "cannot take the address of an rvalue of type"
https://bugs.webkit.org/show_bug.cgi?id=189732

Reviewed by Per Arne Vollan.

Clang for Windows can't compile the MSVC workaround of
UNUSED_PARAM which has been introduced for Windows CE and Visual
Studio 10. I think it's safe just to remove it.

  • wtf/Compiler.h: Removed the code for COMPILER(MSVC).
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r236284 r236302  
     12018-09-20  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Win][Clang] UNUSED_PARAM(this) causes compilation error of "cannot take the address of an rvalue of type"
     4        https://bugs.webkit.org/show_bug.cgi?id=189732
     5
     6        Reviewed by Per Arne Vollan.
     7
     8        Clang for Windows can't compile the MSVC workaround of
     9        UNUSED_PARAM which has been introduced for Windows CE and Visual
     10        Studio 10. I think it's safe just to remove it.
     11
     12        * wtf/Compiler.h: Removed the code for COMPILER(MSVC).
     13
    1142018-09-20  Alex Christensen  <achristensen@webkit.org>
    215
  • trunk/Source/WTF/wtf/Compiler.h

    r235935 r236302  
    364364/* UNUSED_PARAM */
    365365
    366 #if !defined(UNUSED_PARAM) && COMPILER(MSVC)
    367 #define UNUSED_PARAM(variable) (void)&variable
    368 #endif
    369 
    370366#if !defined(UNUSED_PARAM)
    371367#define UNUSED_PARAM(variable) (void)variable
Note: See TracChangeset for help on using the changeset viewer.