Import Cobalt 12.71685
diff --git a/src/third_party/mozjs/mozjs.gyp b/src/third_party/mozjs/mozjs.gyp
index 2959aad..0de26f2 100644
--- a/src/third_party/mozjs/mozjs.gyp
+++ b/src/third_party/mozjs/mozjs.gyp
@@ -39,6 +39,25 @@
# them.
'JS_THREADSAFE',
],
+ 'msvs_disabled_warnings': [
+ # Level 2, Typename first seen as 'type1', but then seen as 'type2'.
+ 4099,
+ # Level 2, Possible loss of data due to type conversion.
+ 4244,
+ # Level 3, Possible loss of data due to type conversion from size_t.
+ 4267,
+ ],
+ # Unfortunately, there is code that generate warnings in the headers.
+ 'direct_dependent_settings': {
+ 'msvs_disabled_warnings': [
+ # Level 2, Typename first seen as 'type1', but then seen as 'type2'.
+ 4099,
+ # Level 2, Possible loss of data due to type conversion.
+ 4244,
+ # Level 3, Possible loss of data due to type conversion from size_t.
+ 4267,
+ ],
+ },
'include_dirs': [
'cobalt_config/include',
'js/src',