summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qbs-resources/modules/qbsbuildconfig/qbsbuildconfig.qbs4
1 files changed, 3 insertions, 1 deletions
diff --git a/qbs-resources/modules/qbsbuildconfig/qbsbuildconfig.qbs b/qbs-resources/modules/qbsbuildconfig/qbsbuildconfig.qbs
index 4a50298fd..28104b55b 100644
--- a/qbs-resources/modules/qbsbuildconfig/qbsbuildconfig.qbs
+++ b/qbs-resources/modules/qbsbuildconfig/qbsbuildconfig.qbs
@@ -58,9 +58,11 @@ Module {
function versionAtLeast(v) {
return Utilities.versionCompare(cpp.compilerVersion, v) >= 0;
};
+ if (isClang())
+ flags.push("-Wno-constant-logical-operand");
if ((!isClang() && versionAtLeast("9"))
|| (isClang() && !qbs.hostOS.contains("darwin") && versionAtLeast("10"))) {
- flags.push("-Wno-deprecated-copy", "-Wno-constant-logical-operand");
+ flags.push("-Wno-deprecated-copy");
}
return flags;
}