From 82c2262b80d97419e8f18c27b70873a36085f8eb Mon Sep 17 00:00:00 2001 From: Thiago Macieira <thiago.macieira@intel.com> Date: Fri, 28 Nov 2014 19:31:12 -0800 Subject: [PATCH] Disable the warning about deprecation inside qalgorithms.h Since some of the algorithms use other ones, we should not warn about those. The warnings are supposed to happen only in user code. Warnings obtained with GCC 5. The Clang change is just to be on the safe side. Change-Id: If295899f6ff6534de7b19741d33efc0b5c4c912c Reviewed-by: Robin Burchell <robin.burchell@viroteck.net> --- src/corelib/tools/qalgorithms.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/corelib/tools/qalgorithms.h b/src/corelib/tools/qalgorithms.h index 0ba3cad5e9b..cffe0128b04 100644 --- a/src/corelib/tools/qalgorithms.h +++ b/src/corelib/tools/qalgorithms.h @@ -37,7 +37,9 @@ #include <QtCore/qglobal.h> QT_BEGIN_NAMESPACE - +QT_WARNING_PUSH +QT_WARNING_DISABLE_GCC("-Wdeprecated-declarations") +QT_WARNING_DISABLE_CLANG("-Wdeprecated-declarations") /* Warning: The contents of QAlgorithmsPrivate is not a part of the public Qt API @@ -582,7 +584,7 @@ Q_DECL_CONSTEXPR inline uint qPopulationCount(long unsigned int v) #undef QALGORITHMS_USE_BUILTIN_POPCOUNT #endif - +QT_WARNING_POP QT_END_NAMESPACE #endif // QALGORITHMS_H -- GitLab