diff --git a/src/corelib/global/qcomparehelpers.h b/src/corelib/global/qcomparehelpers.h index 9b4fc435134..6207af1e9dd 100644 --- a/src/corelib/global/qcomparehelpers.h +++ b/src/corelib/global/qcomparehelpers.h @@ -1191,6 +1191,9 @@ class QTypeInfo> : public QTypeInfo

{}; namespace QtOrderingPrivate { +QT_WARNING_PUSH +QT_WARNING_DISABLE_DEPRECATED // don't warn _here_ in case we hit the deprecated ptr/ptr overloads + namespace CompareThreeWayTester { using Qt::compareThreeWay; @@ -1237,6 +1240,8 @@ constexpr bool compareThreeWayNoexcept() noexcept } // namespace CompareThreeWayTester +QT_WARNING_POP // QT_WARNING_DISABLE_DEPRECATED + #ifdef __cpp_lib_three_way_comparison [[maybe_unused]] inline constexpr struct { /* Niebloid */ template