aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2020-05-07 16:56:49 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2020-05-07 15:25:31 +0000
commit27ea67728f681a246c7146d997a18367df52c3b5 (patch)
tree6c841d997969ada34a0e4bfa5577ec482d7435bd /tests/auto
parent5c71772fd0d64d943b1bb3886b11ec4d0f1a453c (diff)
qbs build: Suppress more warnings
Amends d08e5c33ff. Change-Id: Ic842dda51b21427e1989190b44508d54aa1e7120 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/extensionsystem/plugin.qbs11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/auto/extensionsystem/plugin.qbs b/tests/auto/extensionsystem/plugin.qbs
index a0496e7dbb..446dc250c7 100644
--- a/tests/auto/extensionsystem/plugin.qbs
+++ b/tests/auto/extensionsystem/plugin.qbs
@@ -1,5 +1,5 @@
-import qbs
import qbs.FileInfo
+import qbs.Utilities
import QtcFunctions
DynamicLibrary {
@@ -12,6 +12,15 @@ DynamicLibrary {
targetName: QtcFunctions.qtLibraryName(qbs, name.split('_')[1])
destinationDirectory: project.buildDirectory + '/'
+ FileInfo.relativePath(project.ide_source_tree, sourceDirectory)
+ cpp.cxxFlags: {
+ var flags = [];
+ if (qbs.toolchain.contains("clang")
+ && Utilities.versionCompare(cpp.compilerVersion, "10") >= 0) {
+ // Triggers a lot in Qt.
+ flags.push("-Wno-deprecated-copy", "-Wno-constant-logical-operand");
+ }
+ return flags;
+ }
cpp.rpaths: [
project.buildDirectory + "/" + qtc.libDirName + "/qtcreator",
project.buildDirectory + "/" + qtc.libDirName + "/qtcreator/plugins"