diff options
author | Kai Köhne <kai.koehne@qt.io> | 2022-06-21 15:39:40 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-06-23 06:18:21 +0000 |
commit | e2ff48441b2f9f4930a95ecaae14a5d8562f89e1 (patch) | |
tree | f861a11988aa5f5a70f8778a8000b35362634b81 /src/corelib | |
parent | 31c01cfe88daa141d5388e522a4d6a48fe496572 (diff) |
MSVC: Remove dead Q_DECL_DEPRECATED* definitions
Later on we redefine them to
[[deprecated]], [[deprecated("")]], if the attribute
is available.
Since both MSVC 2019 and 2022 support the attribute,
the __declspec() definition was never used.
https://docs.microsoft.com/en-us/cpp/cpp/attributes
Fixes: QTBUG-93748
Change-Id: I3e12f2ace414e316a811f2ceb44e6f312803439a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit f921b42f34f254ca7066691f3cf4a1c7270f0161)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/global/qcompilerdetection.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/corelib/global/qcompilerdetection.h b/src/corelib/global/qcompilerdetection.h index 30d2a294dc..dc366421a3 100644 --- a/src/corelib/global/qcompilerdetection.h +++ b/src/corelib/global/qcompilerdetection.h @@ -61,10 +61,6 @@ # define Q_ASSUME_IMPL(expr) __assume(expr) # define Q_UNREACHABLE_IMPL() __assume(0) # define Q_NORETURN __declspec(noreturn) -# define Q_DECL_DEPRECATED __declspec(deprecated) -# ifndef Q_CC_CLANG -# define Q_DECL_DEPRECATED_X(text) __declspec(deprecated(text)) -# endif # define Q_DECL_EXPORT __declspec(dllexport) # define Q_DECL_IMPORT __declspec(dllimport) # define QT_MAKE_UNCHECKED_ARRAY_ITERATOR(x) stdext::make_unchecked_array_iterator(x) // Since _MSC_VER >= 1800 |