fix gcc warnings (#2253)

This commit is contained in:
云风
2020-09-02 11:49:08 +08:00
committed by GitHub
parent 4d4ef74fe6
commit 03871f12db
2 changed files with 1 additions and 3 deletions

View File

@@ -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) );

View File

@@ -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() );