diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-11-29 15:42:57 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-29 13:25:57 +0200 |
commit | c1e2a2c74cfe4086e5b72741a96780fd09bd4d7c (patch) | |
tree | 22bc79c8c1a68aca5c038047f02610f3342bdd6c /chromium/build | |
parent | bfec262da7790ad6ac9b2e97fc7e76a23cc0b45b (diff) | |
download | qtwebengine-chromium-c1e2a2c74cfe4086e5b72741a96780fd09bd4d7c.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>
Diffstat (limited to 'chromium/build')
-rw-r--r-- | chromium/build/config/compiler/BUILD.gn | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chromium/build/config/compiler/BUILD.gn b/chromium/build/config/compiler/BUILD.gn index 2650d72ce99..fe2e1df4df8 100644 --- a/chromium/build/config/compiler/BUILD.gn +++ b/chromium/build/config/compiler/BUILD.gn @@ -311,9 +311,13 @@ config("compiler") { "-Wno-unknown-attributes", "-Wno-unknown-warning-option" ] + cflags_cc += [ + "-Wno-parentheses-equality", + "-Wno-tautological-compare" + ] } - 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 |