diff options
Diffstat (limited to 'tests/auto/tools/moc/cxx-attributes.h')
-rw-r--r-- | tests/auto/tools/moc/cxx-attributes.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/tools/moc/cxx-attributes.h b/tests/auto/tools/moc/cxx-attributes.h index eff6a3ec41..abd75afe98 100644 --- a/tests/auto/tools/moc/cxx-attributes.h +++ b/tests/auto/tools/moc/cxx-attributes.h @@ -31,6 +31,9 @@ #include <QtCore/QObject> +QT_WARNING_PUSH +QT_WARNING_DISABLE_CLANG("-Wunknown-attributes") + class CppAttribute : public QObject { Q_OBJECT @@ -57,6 +60,8 @@ public slots: #endif }; +QT_WARNING_POP + #ifdef Q_MOC_RUN # define TEST_COMPILER_DEPRECATION [[deprecated]] # define TEST_COMPILER_DEPRECATION_X(x) [[deprecated(x)]] @@ -65,6 +70,9 @@ public slots: # define TEST_COMPILER_DEPRECATION_X(x) Q_DECL_ENUMERATOR_DEPRECATED_X(x) #endif +QT_WARNING_PUSH +QT_WARNING_DISABLE_DEPRECATED + namespace TestQNamespaceDeprecated { Q_NAMESPACE enum class TestEnum1 { @@ -100,4 +108,6 @@ namespace TestQNamespaceDeprecated { Q_FLAG_NS(TestFlag1) } +QT_WARNING_POP + #endif // CXXATTRIBUTE_H |