[gn] Add back two warnings V8 uses with gyp

BUG=428099

Review-Url: https://codereview.chromium.org/2404283002
Cr-Commit-Position: refs/heads/master@{#40235}
This commit is contained in:
machenbach 2016-10-12 10:49:44 -07:00 committed by Commit bot
parent 11e3ec3cdf
commit f18a9ad780

View File

@ -371,6 +371,18 @@ config("toolchain") {
"-fno-inline",
]
}
if (is_clang) {
cflags += [
# TODO(hans): Remove once http://crbug.com/428099 is resolved.
"-Winconsistent-missing-override",
]
if (v8_current_cpu == "x64" || v8_current_cpu == "arm64" ||
v8_current_cpu == "mips64el") {
cflags += [ "-Wshorten-64-to-32" ]
}
}
}
###############################################################################