Enable MSVC warning 4312.

This is caught in the Skia build.

Bug: skia:7647
Change-Id: I9b164f6fcc55b7e13981659ee8a08766a99a2122
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2381084
Commit-Queue: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
This commit is contained in:
Jamie Madill authored and Commit Bot committed 2020-08-28 23:26:42 +00:00
1 parent 966a62cb2d
commit 330c867370
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -133,6 +133,7 @@ config("extra_warnings") {
if (is_win) {
cflags += [
"/we4244", # Conversion: possible loss of data.
"/we4312", # Conversion: greater size.
"/we4456", # Variable shadowing.
"/we4458", # declaration hides class member.
"/we4715", # not all control paths return a value
+2 -2
View File
@@ -2957,8 +2957,8 @@ void CaptureMidExecutionSetup(const gl::Context *context,
const gl::SyncManager &syncs = apiState.getSyncManagerForCapture();
for (const auto &syncIter : syncs)
{
GLsync syncID = reinterpret_cast<GLsync>(syncIter.first);
gl::Sync *sync = syncIter.second;
GLsync syncID = gl::bitCast<GLsync>(syncIter.first);
const gl::Sync *sync = syncIter.second;
if (!sync)
{