Index: third_party/mesa/BUILD.gn |
diff --git a/third_party/mesa/BUILD.gn b/third_party/mesa/BUILD.gn |
index 01e4ad427236040984b150e870cab850d00fe462..4f68a2e7d75b5aef89089c124c13c8db904e8355 100644 |
--- a/third_party/mesa/BUILD.gn |
+++ b/third_party/mesa/BUILD.gn |
@@ -3,6 +3,7 @@ |
# found in the LICENSE file. |
import("//build/config/ui.gni") |
+import("//build/config/compiler/compiler.gni") |
import("//build/config/sanitizers/sanitizers.gni") |
config("mesa_headers_config") { |
@@ -144,6 +145,11 @@ config("mesa_internal_warnings") { |
"/wd4345", # POD-type default initializers. |
"/wd4311", # Pointer truncation TODO(brucedawson): http://crbug.com/554200 |
] |
+ if (is_official_build && full_wpo_on_official) { |
+ # TODO(sebmarchand): http://crbug.com/604838 This should be removed if |
+ # Mesa is ever rolled and the warning is fixed. |
+ cflags += [ "/wd4723" ] # potential divide by 0. |
+ } |
} |
} |