| Index: third_party/re2/BUILD.gn
|
| diff --git a/third_party/re2/BUILD.gn b/third_party/re2/BUILD.gn
|
| index d022e4f9e03c8780cd489da9b923b307891edf7f..656e5cf2e4e461c2c6dee2ca7520b1944fff8781 100644
|
| --- a/third_party/re2/BUILD.gn
|
| +++ b/third_party/re2/BUILD.gn
|
| @@ -58,7 +58,11 @@ static_library("re2") {
|
| ]
|
|
|
| configs -= [ "//build/config/compiler:chromium_code" ]
|
| - configs += [ "//build/config/compiler:no_chromium_code" ]
|
| + configs += [
|
| + "//build/config/compiler:no_chromium_code",
|
| + # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
|
| + "//build/config/compiler:no_size_t_to_int_warning",
|
| + ]
|
| public_configs = [ ":re2_config" ]
|
|
|
| deps = [
|
| @@ -67,10 +71,7 @@ static_library("re2") {
|
|
|
| if (is_win) {
|
| include_dirs = [ "mswin" ]
|
| - cflags = [
|
| - "/wd4267", # Conversion from size_t.
|
| - "/wd4722", # Destructor never terminates.
|
| - ]
|
| + cflags = [ "/wd4722" ] # Destructor never terminates.
|
| } else {
|
| sources -= [ "mswin/stdint.h" ]
|
| }
|
|
|