GCC warning.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-01-12 15:54:42 +02:00
parent 5c8c940f32
commit da314b3265

View File

@ -33,6 +33,11 @@
#if QT_VERSION < QT_VERSION_CHECK(5, 7, 0)
#if defined(Q_COMPILER_VARIADIC_TEMPLATES)
#include "../diagnostic.h"
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Weffc++")
template <typename... Args>
struct QNonConstOverload
{
@ -80,6 +85,8 @@ template <typename... Args> Q_CONSTEXPR Q_DECL_UNUSED QConstOverload<Args...> qC
template <typename... Args> Q_CONSTEXPR Q_DECL_UNUSED QNonConstOverload<Args...> qNonConstOverload = {};
#endif
QT_WARNING_POP
#endif // Q_COMPILER_VARIADIC_TEMPLATES
#endif // QT_VERSION < QT_VERSION_CHECK(5, 7, 0)