diff --git a/src/bgfx_p.h b/src/bgfx_p.h index ec3265ba..b94491c8 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -2872,8 +2872,8 @@ namespace bgfx case WM_KEYDOWN: case WM_SYSKEYDOWN: - if (WM_KEYDOWN == _id && VK_F11 == _wparam - || WM_SYSKEYDOWN == _id && VK_RETURN == _wparam) + if ((WM_KEYDOWN == _id && VK_F11 == _wparam) + || (WM_SYSKEYDOWN == _id && VK_RETURN == _wparam)) { toggleWindowFrame(); } diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 98f46dbf..13e3edea 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -966,6 +966,7 @@ namespace bgfx , data , offset ); + (void)offset; } m_constantBuffer->finish(); @@ -1685,6 +1686,7 @@ namespace bgfx } BX_TRACE("GL_EXTENSION%s: %s", supported ? " (supported)" : "", name); + (void)supported; pos += len+1; }