diff options
author | Kai Köhne <kai.koehne@qt.io> | 2022-06-21 15:39:40 +0200 |
---|---|---|
committer | Kai Köhne <kai.koehne@qt.io> | 2022-06-23 01:30:23 +0200 |
commit | f921b42f34f254ca7066691f3cf4a1c7270f0161 (patch) | |
tree | 773a4050a885f2c473c32654a1a53ffac1a42dd0 /src | |
parent | 116d8f987bfbb0ec1744fe6c2989f8f2a5756aba (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
Pick-to: 6.4
Fixes: QTBUG-93748
Change-Id: I3e12f2ace414e316a811f2ceb44e6f312803439a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-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 |