Changeset 147882 in webkit


Ignore:
Timestamp:
Apr 7, 2013 3:09:45 PM (11 years ago)
Author:
Patrick Gansterer
Message:

[WinCE] Add workaround for UNUSED_PARAM()
https://bugs.webkit.org/show_bug.cgi?id=113440

Reviewed by Benjamin Poulain.

The MSVC compiler for Windwos CE throws an error when
an function parameter is passed to UNUSED_PARAM() and
its type is only forward declared.

  • wtf/UnusedParam.h:
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r147881 r147882  
     12013-04-07  Patrick Gansterer  <paroga@webkit.org>
     2
     3        [WinCE] Add workaround for UNUSED_PARAM()
     4        https://bugs.webkit.org/show_bug.cgi?id=113440
     5
     6        Reviewed by Benjamin Poulain.
     7
     8        The MSVC compiler for Windwos CE throws an error when
     9        an function parameter is passed to UNUSED_PARAM() and
     10        its type is only forward declared.
     11
     12        * wtf/UnusedParam.h:
     13
    1142013-04-07  Patrick Gansterer  <paroga@webkit.org>
    215
  • trunk/Source/WTF/wtf/UnusedParam.h

    r128015 r147882  
    2828inline void unusedParam(T& x) { (void)x; }
    2929#define UNUSED_PARAM(variable) unusedParam(variable)
     30#elif COMPILER(MSVC) && OS(WINCE)
     31#define UNUSED_PARAM(variable) (void)&variable
    3032#else
    3133#define UNUSED_PARAM(variable) (void)variable
Note: See TracChangeset for help on using the changeset viewer.