From d77f5e5c1a8f4f1fabcdbba7b96d33b905a5f854 Mon Sep 17 00:00:00 2001 From: Matthew Endsley Date: Mon, 2 Jul 2012 01:34:51 -0700 Subject: [PATCH 1/2] updating to cleanly compile with -Wall and -Wextra --- src/renderer_gl.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } From 382feb17950f5bd1c260cc7ba2f92d9780cc4753 Mon Sep 17 00:00:00 2001 From: Matthew Endsley Date: Mon, 2 Jul 2012 11:03:36 -0700 Subject: [PATCH 2/2] updating to cleaning compile in mingw with -Wall/-Wextra --- src/bgfx_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }