Title: [147882] trunk/Source/WTF
- Revision
- 147882
- Author
- [email protected]
- Date
- 2013-04-07 15:09:45 -0700 (Sun, 07 Apr 2013)
Log 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:
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (147881 => 147882)
--- trunk/Source/WTF/ChangeLog 2013-04-07 22:08:32 UTC (rev 147881)
+++ trunk/Source/WTF/ChangeLog 2013-04-07 22:09:45 UTC (rev 147882)
@@ -1,5 +1,18 @@
2013-04-07 Patrick Gansterer <[email protected]>
+ [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:
+
+2013-04-07 Patrick Gansterer <[email protected]>
+
Do not check if WTF_ARM_ARCH_VERSION is defined in WTF_ARM_ARCH_AT_LEAST macro
https://bugs.webkit.org/show_bug.cgi?id=114127
Modified: trunk/Source/WTF/wtf/UnusedParam.h (147881 => 147882)
--- trunk/Source/WTF/wtf/UnusedParam.h 2013-04-07 22:08:32 UTC (rev 147881)
+++ trunk/Source/WTF/wtf/UnusedParam.h 2013-04-07 22:09:45 UTC (rev 147882)
@@ -27,6 +27,8 @@
template<typename T>
inline void unusedParam(T& x) { (void)x; }
#define UNUSED_PARAM(variable) unusedParam(variable)
+#elif COMPILER(MSVC) && OS(WINCE)
+#define UNUSED_PARAM(variable) (void)&variable
#else
#define UNUSED_PARAM(variable) (void)variable
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes