Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 7f7e42373cb6433928d467cbefc2846dc629f708..88c7c053ff03d7d9b3506ecc7c83e5ab822eccb0 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -697,7 +697,6 @@ if (is_win) { |
default_warning_flags += [ |
# Enables. |
"-Wendif-labels", # Weird old-style text after an #endif. |
- "-Werror", # Warnings as errors. |
# Disables. |
"-Wno-missing-field-initializers", # "struct foo f = {0};" |
@@ -763,6 +762,7 @@ config("chromium_code") { |
cflags = [ |
"-Wall", |
"-Wextra", |
+ "-Werror", |
] |
defines = [] |