summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-12-06 11:02:21 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-12-14 16:17:32 +0100
commitfb180441186932967d43cf4afe3767199bae7616 (patch)
tree96e5db6761522fc2fbacc4b2b18d952325d66c1e
parent53f4772316ce134b21a498a9b796efb712ccf028 (diff)
downloadqtwebengine-chromium-fb180441186932967d43cf4afe3767199bae7616.tar.gz
FIXUP: Reduce warning flood when compiling with clang
The old flags for ignoring unknown options were needed in cflags not in cflags_cc. Change-Id: Ie90d00397119872d13696246b6f4878533519686 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--chromium/build/config/compiler/BUILD.gn8
1 files changed, 5 insertions, 3 deletions
diff --git a/chromium/build/config/compiler/BUILD.gn b/chromium/build/config/compiler/BUILD.gn
index a1b2e74fc53..a09a2db20e1 100644
--- a/chromium/build/config/compiler/BUILD.gn
+++ b/chromium/build/config/compiler/BUILD.gn
@@ -260,12 +260,14 @@ config("compiler") {
}
if (use_qt && is_clang) {
- cflags_cc += [
- "-Wno-parentheses-equality",
- "-Wno-tautological-compare",
+ cflags += [
"-Wno-unknown-attributes",
"-Wno-unknown-warning-option"
]
+ cflags_cc += [
+ "-Wno-parentheses-equality",
+ "-Wno-tautological-compare"
+ ]
}
if (is_clang && (is_debug || use_qt)) {