aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2020-01-26 14:04:25 +0100
committerIvan Komissarov <ABBAPOH@gmail.com>2020-01-28 12:18:35 +0000
commited05ce484dc18279bfa5ac7f0575ad93e9ecf9e2 (patch)
tree96123665ba00264f7557d3cb899385661bced9be /examples
parent58b84a676184813fea885243a7ccacc8af5b94de (diff)
clang-cl: Fix build warnings
Those are treated as errors and fail build on Travis Change-Id: I6ce46434cb37af936f25836dc857ed65f0b5cd1b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/code-generator/code-generator.qbs4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/code-generator/code-generator.qbs b/examples/code-generator/code-generator.qbs
index df15dec5e..1c2d2e445 100644
--- a/examples/code-generator/code-generator.qbs
+++ b/examples/code-generator/code-generator.qbs
@@ -55,6 +55,10 @@ Project {
name: "hwgen"
consoleApplication: true
files: ["hwgen.cpp"]
+ Properties {
+ condition: qbs.toolchain.contains("gcc") || qbs.toolchain.contains("clang-cl")
+ cpp.cxxFlags: ["-Wno-deprecated-declarations"]
+ }
}
// Generate and build a hello-world application.