[Webkit-unassigned] [Bug 44870] New: [Qt] ASSERT_UNUSED should call Q_UNUSED
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Aug 30 07:29:45 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=44870
Summary: [Qt] ASSERT_UNUSED should call Q_UNUSED
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Keywords: Qt, QtTriaged
Severity: Normal
Priority: P2
Component: Platform
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: ossy at webkit.org
Blocks: 44593
Q_UNUSED is more specific than a simple (void)x ,
so ASSERT_UNUSED should call Q_UNUSED for Qt builds
to make ICC and RVCT happy.
ASSERT_UNUSED:
--------------
#define ASSERT_UNUSED(variable, assertion) ((void)variable)
Q_UNUSED:
---------
#if defined(Q_CC_INTEL) && !defined(Q_OS_WIN) || defined(Q_CC_RVCT)
template <typename T>
inline void qUnused(T &x) { (void)x; }
# define Q_UNUSED(x) qUnused(x);
#else
# define Q_UNUSED(x) (void)x;
#endif
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list