DescriptionMisc fixes for gn builds with VS 2015
These changes are enough to get gn_all building with VS 2015 in
32-bit gn builds. The changes are mostly to fix warnings about
truncation from size_t to smaller types.
One fix is to avoid illegal #defines, already fixed in the GYP builds.
Warning 4267 is disabled in the main BUILD.gn file because many of the
4244 warnings that VC++ 2013 emits are now emitted as 4267, so we need
to disable 4267 everywhere that 4244 is disabled. Fixing the code is
best done as a separate task.
The code fixes are to avoid truncations, mostly by using more
appropriate types.
BUG=440500
Committed: https://crrev.com/c8e9e0d00bc2ba692ee4e61ae728a50e911513c1
Cr-Commit-Position: refs/heads/master@{#362858}
Patch Set 1 #Patch Set 2 : Move vs_version.gni include inside if (is_win) #Patch Set 3 : Disable warning 4267 which is the VC++ 2015 4244 #
Total comments: 1
Patch Set 4 : Disable C4267 for VC++ 2015 builds only #
Messages
Total messages: 23 (8 generated)
|