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

Unified Diff: build/common.gypi

Issue 692313002: Disable -Wextra for all toolchains. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add -Wno-type-limits to GYP build Created 6 years, 1 month 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 | « no previous file | build/config/compiler/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index b8a87e09c707e3b6bc7cf47fcd41bbcdd8499e9a..d42fc2a444d33dfc70a15d50cf74700f1a7a2dd0 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -3546,6 +3546,13 @@
'-Wno-unused-parameter',
# Don't warn about the "struct foo f = {0};" initialization pattern.
'-Wno-missing-field-initializers',
+ # Don't warn if a comparison is always true or always false due to
+ # the limited range of the data type. This would be nice to do, but
+ # unfortunately, 'char' is signed on some toolchains and unsigned on
+ # others. There are downsides to forcing it to be one or the other.
+ # Forcing signed makes ARM builds less performant, and Windows builds
+ # fail if we force unsigned.
+ '-Wno-type-limits',
Nico 2014/11/03 20:42:38 You only want to add this for gcc builds. clang bu
# Don't export any symbols (for example, to plugins we dlopen()).
# Note: this is *required* to make some plugins work.
'-fvisibility=hidden',
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698