Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index b33351bc992e8b17efbb936797bb2a3ca8052a0c..75fb9dc915228949bc6f8829163eb6b1610a4652 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -556,6 +556,12 @@ if (is_win) { |
default_warning_flags += [ "-Wno-psabi" ] |
} |
+ # The Raspberry Pi 1 toolchain enables this warning, but Dart doesn't build |
+ # cleanly with it. |
+ if (is_linux && !is_clang && current_cpu == "arm" && arm_version == 6) { |
+ default_warning_flags += [ "-Wno-type-limits" ] |
+ } |
+ |
if (is_android) { |
# Disable any additional warnings enabled by the Android build system but |
# which chromium does not build cleanly with (when treating warning as |