Commit ffa277a1 by Bruce Dawson Committed by Commit Bot

Fix logic for warningsAsErrors

warningsAsErrors should be falsed on Windows 7 because we may legitimately get a warning about loading the old d3dcompiler DLL on that platform. The logic for this was reversed in the initial change. This change flips the logic, changes the cutoff OS version, and always sets the flag to something. Bug: chromium:920704 Change-Id: Ibf8a7c9a48bffc183479b7614148d6c00c122a07 Reviewed-on: https://chromium-review.googlesource.com/c/1496015 Commit-Queue: Bruce Dawson <brucedawson@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@google.com>
parent 5546fb4f
......@@ -1281,11 +1281,9 @@ void ANGLETestBase::ignoreD3D11SDKLayersWarnings()
void ANGLETestBase::treatPlatformWarningsAsErrors()
{
#if defined(ANGLE_PLATFORM_WINDOWS)
// Disable on Windows 7-8. We are falling back to the old compiler DLL.
if (!IsWindows10OrGreater())
{
mPlatformContext.warningsAsErrors = true;
}
// Only do warnings-as-errors on 8 and above. We may fall back to the old
// compiler DLL on Windows 7.
mPlatformContext.warningsAsErrors = IsWindows8OrGreater();
#endif // defined(ANGLE_PLATFORM_WINDOWS)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment