From e454e986d57bacbc895cc4f476d2b100b782936c Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 3 Jun 2016 22:43:03 -0300 Subject: Move the Q_DECL_UNUSED attribute elsewhere to satisfy ICC 17 It doesn't like the attribute there. I think it's a compiler bug, but I can't be sure because the part of the standard dealing with the placement of attributes and where they apply is very complex. Exercise left for the reader to determine if ICC is correct or not to reject it there. Change-Id: I87e17314d8b24ae983b1fffd1454bde826b7bcf4 Reviewed-by: Olivier Goffart (Woboq GmbH) Reviewed-by: Simon Hausmann Reviewed-by: Frederik Gladhorn --- src/corelib/global/qglobal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 2081ca8649..118203f720 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -1080,9 +1080,9 @@ struct QOverload : QConstOverload, QNonConstOverload }; #if defined(__cpp_variable_templates) && __cpp_variable_templates >= 201304 // C++14 -template Q_CONSTEXPR QOverload qOverload Q_DECL_UNUSED = {}; -template Q_CONSTEXPR QConstOverload qConstOverload Q_DECL_UNUSED = {}; -template Q_CONSTEXPR QNonConstOverload qNonConstOverload Q_DECL_UNUSED = {}; +template Q_CONSTEXPR Q_DECL_UNUSED QOverload qOverload = {}; +template Q_CONSTEXPR Q_DECL_UNUSED QConstOverload qConstOverload = {}; +template Q_CONSTEXPR Q_DECL_UNUSED QNonConstOverload qNonConstOverload = {}; #endif #endif -- cgit v1.2.3