- a/Source/WTF/ChangeLog +13 lines
Lines 1-5 a/Source/WTF/ChangeLog_sec1
1
2013-04-29  Patrick Gansterer  <paroga@webkit.org>
1
2013-04-29  Patrick Gansterer  <paroga@webkit.org>
2
2
3
        [WIN] Add workaround for UNUSED_PARAM()
4
        https://bugs.webkit.org/show_bug.cgi?id=115350
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        r147882 added an workaround for the MSVC compiler on Windows CE.
9
        Extend this workaround to whole MSVC compiler, since the same
10
        problem occurs with the Visual Studio 10 compiler too.
11
12
        * wtf/UnusedParam.h:
13
14
2013-04-29  Patrick Gansterer  <paroga@webkit.org>
15
3
        Define USE(ICU_UNICODE) if USE(WCHAR_UNICODE) is false
16
        Define USE(ICU_UNICODE) if USE(WCHAR_UNICODE) is false
4
        https://bugs.webkit.org/show_bug.cgi?id=115349
17
        https://bugs.webkit.org/show_bug.cgi?id=115349
5
18
- a/Source/WTF/wtf/UnusedParam.h -1 / +1 lines
Lines 27-33 a/Source/WTF/wtf/UnusedParam.h_sec1
27
template<typename T>
27
template<typename T>
28
inline void unusedParam(T& x) { (void)x; }
28
inline void unusedParam(T& x) { (void)x; }
29
#define UNUSED_PARAM(variable) unusedParam(variable)
29
#define UNUSED_PARAM(variable) unusedParam(variable)
30
#elif COMPILER(MSVC) && OS(WINCE)
30
#elif COMPILER(MSVC)
31
#define UNUSED_PARAM(variable) (void)&variable
31
#define UNUSED_PARAM(variable) (void)&variable
32
#else
32
#else
33
#define UNUSED_PARAM(variable) (void)variable
33
#define UNUSED_PARAM(variable) (void)variable

Return to Bug 115350