summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-11-29 15:42:57 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-12-05 17:04:20 +0100
commitb75efa6a56ae0bc18eadf941fed682a964d4ff71 (patch)
tree6865d9c10466b816e78d6720a1ded98d2a436a6d
parent134fd03a9e08dddd3151a86a5bde66f54ccfbc2a (diff)
downloadqtwebengine-chromium-b75efa6a56ae0bc18eadf941fed682a964d4ff71.tar.gz
Reduce warning flood when compiling with clang
"cause the night is crap and full of warnings" Change-Id: Ic391ac12428c23ccfde8bc4aa5eaa0fa64235ff3 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--chromium/build/config/compiler/BUILD.gn6
1 files changed, 4 insertions, 2 deletions
diff --git a/chromium/build/config/compiler/BUILD.gn b/chromium/build/config/compiler/BUILD.gn
index 5465df56cc6..a1b2e74fc53 100644
--- a/chromium/build/config/compiler/BUILD.gn
+++ b/chromium/build/config/compiler/BUILD.gn
@@ -260,13 +260,15 @@ config("compiler") {
}
if (use_qt && is_clang) {
- cflags += [
+ cflags_cc += [
+ "-Wno-parentheses-equality",
+ "-Wno-tautological-compare",
"-Wno-unknown-attributes",
"-Wno-unknown-warning-option"
]
}
- if (is_clang && is_debug) {
+ if (is_clang && (is_debug || use_qt)) {
# Allow comparing the address of references and 'this' against 0
# in debug builds. Technically, these can never be null in
# well-defined C/C++ and Clang can optimize such checks away in