Browse Source

Fixed GCC warning.

Branimir Karadžić 11 years ago
parent
commit
db954c9031
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/glcontext_wgl.cpp

+ 1 - 1
src/glcontext_wgl.cpp

@@ -297,7 +297,7 @@ namespace bgfx
 		SwapChainGL* swapChain = BX_NEW(g_allocator, SwapChainGL)(_nwh);
 		SwapChainGL* swapChain = BX_NEW(g_allocator, SwapChainGL)(_nwh);
 
 
 		int result = SetPixelFormat(swapChain->m_hdc, m_pixelFormat, &m_pfd);
 		int result = SetPixelFormat(swapChain->m_hdc, m_pixelFormat, &m_pfd);
-		BX_WARN(result, "SetPixelFormat failed (last err: 0x%08x)!", GetLastError() );
+		BX_WARN(result, "SetPixelFormat failed (last err: 0x%08x)!", GetLastError() ); BX_UNUSED(result);
 
 
 		swapChain->m_context = wglCreateContextAttribsARB(swapChain->m_hdc, m_context, m_contextAttrs);
 		swapChain->m_context = wglCreateContextAttribsARB(swapChain->m_hdc, m_context, m_contextAttrs);
 		BX_CHECK(NULL != swapChain->m_context, "Create swap chain failed: %x", glGetError() );
 		BX_CHECK(NULL != swapChain->m_context, "Create swap chain failed: %x", glGetError() );