Commit bae30a00 by Jamie Madill

Add a macro for unused trace variables.

This fixes the standalone 64-bit Debug build. Change-Id: I348b71a96ada435867367e565bc84b570d2bfb67 Reviewed-on: https://chromium-review.googlesource.com/204292Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarShannon Woods <shannonwoods@chromium.org> Tested-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 1d4e38d3
...@@ -83,6 +83,12 @@ namespace gl ...@@ -83,6 +83,12 @@ namespace gl
#define UNUSED_ASSERTION_VARIABLE(variable) ((void)variable) #define UNUSED_ASSERTION_VARIABLE(variable) ((void)variable)
#endif #endif
#ifndef ANGLE_ENABLE_TRACE
#define UNUSED_TRACE_VARIABLE(variable) ((void)variable)
#else
#define UNUSED_TRACE_VARIABLE(variable)
#endif
// A macro to indicate unimplemented functionality // A macro to indicate unimplemented functionality
// Define NOASSERT_UNIMPLEMENTED to non zero to skip the assert fail in the unimplemented checks // Define NOASSERT_UNIMPLEMENTED to non zero to skip the assert fail in the unimplemented checks
......
...@@ -593,7 +593,7 @@ EGLint SwapChain11::swapRect(EGLint x, EGLint y, EGLint width, EGLint height) ...@@ -593,7 +593,7 @@ EGLint SwapChain11::swapRect(EGLint x, EGLint y, EGLint width, EGLint height)
if (result == DXGI_ERROR_DEVICE_REMOVED) if (result == DXGI_ERROR_DEVICE_REMOVED)
{ {
HRESULT removedReason = device->GetDeviceRemovedReason(); HRESULT removedReason = device->GetDeviceRemovedReason();
UNUSED_ASSERTION_VARIABLE(removedReason); UNUSED_TRACE_VARIABLE(removedReason);
ERR("Present failed: the D3D11 device was removed: 0x%08X", removedReason); ERR("Present failed: the D3D11 device was removed: 0x%08X", removedReason);
return EGL_CONTEXT_LOST; return EGL_CONTEXT_LOST;
} }
......
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