[BUILD] Disable warning for using enum constant in boolean context
Change-Id: I5e976ba8cbecaff04a0975a3de00627cabb00f3f Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2442432 Reviewed-by: Milad Fa <mfarazma@redhat.com> Reviewed-by: Clemens Backes <clemensb@chromium.org> Commit-Queue: Milad Fa <mfarazma@redhat.com> Cr-Commit-Position: refs/heads/master@{#70284}
This commit is contained in:
parent
8b1a3a73fa
commit
f3861a8723
4
BUILD.gn
4
BUILD.gn
@ -942,6 +942,10 @@ config("toolchain") {
|
||||
# GCC assumes that control can get past an exhaustive switch and then
|
||||
# warns if there's no return there (see https://crbug.com/v8/7658).
|
||||
"-Wno-return-type",
|
||||
|
||||
# Disable gcc warnings for using enum constant in boolean context.
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97266
|
||||
"-Wno-int-in-bool-context",
|
||||
]
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user