Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Unified Diff: build/config/compiler/BUILD.gn

Issue 1339223002: clang: Disable new warning -Wbitfield-width on the ToT bots. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/compiler/BUILD.gn
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 1a7df3025fa011bbc8e1c257f3169229c99594ae..00b79bfb0afe212e912874cbc26233188895f8e8 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -1047,6 +1047,17 @@ if (is_clang) {
"-Wno-shift-negative-value",
]
}
+
+ if (exec_script("//tools/clang/scripts/update.py",
+ [ "--print-revision" ],
+ "trim string") != "245965-1") {
+ default_warning_flags += [
+ # TODO(thakis): Move this into outer if once clang is rolled far enough
+ # that the pinned clang understands this flag.
+ # TODO(thakis): Consider enabling this?
+ "-Wno-bitfield-width",
+ ]
+ }
}
# chromium_code ---------------------------------------------------------------
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698