[Wconversion] Suppress warnings on Fuchsia

Bug: fuchsia:56258

Change-Id: I6bdc0b81a0294040e4dceb18576ab38c45a430e4
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2345384
Reviewed-by: Scott Graham <scottmg@chromium.org>
Commit-Queue: Scott Graham <scottmg@chromium.org>
This commit is contained in:
Shai Barack 2020-08-09 09:51:01 -07:00 committed by Commit Bot
parent 45ca490687
commit 59e8120e7a
4 changed files with 17 additions and 0 deletions

View File

@ -116,6 +116,7 @@ static_library("client") {
deps += [ "../third_party/fuchsia" ]
if (crashpad_is_in_fuchsia) {
deps += [ "//sdk/lib/fdio" ]
configs += [ "//build/config:Wno-conversion" ]
}
}
}

View File

@ -171,4 +171,8 @@ compat_target("compat") {
if (!crashpad_is_linux && !crashpad_is_android && !crashpad_is_fuchsia) {
deps += [ "../third_party/glibc" ]
}
if (crashpad_is_in_fuchsia) {
configs = [ "//build/config:Wno-conversion" ]
}
}

View File

@ -261,6 +261,10 @@ static_library("snapshot") {
}
configs += [ "..:disable_ubsan" ]
if (crashpad_is_in_fuchsia) {
configs += [ "//build/config:Wno-conversion" ]
}
}
# :context is the only part of snapshot that minidump may depend on.
@ -281,6 +285,10 @@ static_library("context") {
if (crashpad_is_win) {
cflags = [ "/wd4201" ] # nonstandard extension used : nameless struct/union
}
if (crashpad_is_in_fuchsia) {
configs += [ "//build/config:Wno-conversion" ]
}
}
if (crashpad_is_linux) {

View File

@ -612,6 +612,10 @@ static_library("util") {
}
configs += [ "..:disable_ubsan" ]
if (crashpad_is_in_fuchsia) {
configs += [ "//build/config:Wno-conversion" ]
}
}
if (!crashpad_is_android && !crashpad_is_ios) {