Explorar el Código

fix gcc warnings (#2253)

云风 hace 5 años
padre
commit
03871f12db
Se han modificado 2 ficheros con 1 adiciones y 3 borrados
  1. 1 1
      src/renderer_d3d11.cpp
  2. 0 2
      tools/shaderc/shaderc_hlsl.cpp

+ 1 - 1
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) );

+ 0 - 2
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() );