summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/moc/single_function_keyword.h
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-08-21 17:22:03 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-08-23 01:18:13 +0200
commit6ece7dd09ac8897b70b062507d2bff69e5e4115a (patch)
tree1677ce41d18d51554e897626abc16526adef19a9 /tests/auto/tools/moc/single_function_keyword.h
parent2e7f11246e8b5bd0952c3b498da04ae4fc14f264 (diff)
Fix warnings in tst_moc
Change-Id: I4cbc851e59febdc533c02fb4b95d2924348086b4 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/auto/tools/moc/single_function_keyword.h')
-rw-r--r--tests/auto/tools/moc/single_function_keyword.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/tools/moc/single_function_keyword.h b/tests/auto/tools/moc/single_function_keyword.h
index ec1a0ac628..6abcc42a04 100644
--- a/tests/auto/tools/moc/single_function_keyword.h
+++ b/tests/auto/tools/moc/single_function_keyword.h
@@ -47,7 +47,10 @@ class SingleFunctionKeywordBeforeInline : public QObject
public:
inline SingleFunctionKeywordBeforeInline() {}
+QT_WARNING_PUSH
+QT_WARNING_DISABLE_CLANG("-Wundefined-inline")
Q_SIGNAL inline void mySignal();
+QT_WARNING_POP
Q_SLOT inline void mySlot() { emit mySignal(); }
};
@@ -58,7 +61,10 @@ class SingleFunctionKeywordAfterInline : public QObject
public:
inline SingleFunctionKeywordAfterInline() {}
+QT_WARNING_PUSH
+QT_WARNING_DISABLE_CLANG("-Wundefined-inline")
inline Q_SIGNAL void mySignal();
+QT_WARNING_POP
inline Q_SLOT void mySlot() { emit mySignal(); }
};