From 03871f12db987d77d575569e654760749acc94e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E9=A3=8E?= Date: Wed, 2 Sep 2020 11:49:08 +0800 Subject: [PATCH] fix gcc warnings (#2253) --- src/renderer_d3d11.cpp | 2 +- tools/shaderc/shaderc_hlsl.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index 1ca724a48..2c2e552f4 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -665,6 +665,7 @@ namespace bgfx { namespace d3d11 , m_ags(NULL) , m_featureLevel(D3D_FEATURE_LEVEL(0) ) , m_swapChain(NULL) + , m_needPresent(false) , m_lost(false) , m_numWindows(0) , m_device(NULL) @@ -686,7 +687,6 @@ namespace bgfx { namespace d3d11 , m_rtMsaa(false) , m_timerQuerySupport(false) , m_directAccessSupport(false) - , m_needPresent(false) { m_fbh.idx = kInvalidHandle; bx::memSet(&m_scd, 0, sizeof(m_scd) ); diff --git a/tools/shaderc/shaderc_hlsl.cpp b/tools/shaderc/shaderc_hlsl.cpp index 57986d189..ed30c1e70 100644 --- a/tools/shaderc/shaderc_hlsl.cpp +++ b/tools/shaderc/shaderc_hlsl.cpp @@ -676,8 +676,6 @@ namespace bgfx { namespace hlsl if (_firstPass && unusedUniforms.size() > 0) { - const size_t strLength = bx::strLen("uniform"); - // first time through, we just find unused uniforms and get rid of them std::string output; bx::LineReader reader(_code.c_str() );