win gn: reintroduce flags to disable warnings

These flags were moved to mini_chromium's build/BUILD.gn, but that
configuration is not present when building in chromium.

Change-Id: I0d03c7461869882cf2ee7544ecd3d100eb189160
Reviewed-on: https://chromium-review.googlesource.com/940436
Reviewed-by: Scott Graham <scottmg@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Joshua Peraza <jperaza@chromium.org>
This commit is contained in:
Joshua Peraza 2018-02-27 15:29:38 -08:00 committed by Commit Bot
parent 9affa2a0e7
commit dec23bef57
2 changed files with 4 additions and 0 deletions

View File

@ -241,6 +241,8 @@ if (crashpad_is_win) {
"win/crashy_signal.cc",
]
cflags = [ "/wd4702" ] # Unreachable code.
deps = [
"../client",
"../third_party/mini_chromium:base",

View File

@ -430,6 +430,8 @@ static_library("util") {
"winhttp.lib",
]
cflags = [ "/wd4201" ] # nonstandard extension used: nameless struct/union.
if (current_cpu == "x86") {
asmflags = [ "/safeseh" ]
}