Browse Source

Fixing unused macro.

bkaradzic 12 năm trước cách đây
mục cha
commit
616177ea5f
3 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 1 0
      src/bgfx.cpp
  2. 1 0
      src/renderer_d3d9.cpp
  3. 1 0
      src/renderer_gl.cpp

+ 1 - 0
src/bgfx.cpp

@@ -64,6 +64,7 @@ namespace bgfx
 		virtual void fatal(Fatal::Enum _code, const char* _str) BX_OVERRIDE
 		virtual void fatal(Fatal::Enum _code, const char* _str) BX_OVERRIDE
 		{
 		{
 			BX_TRACE("0x%08x: %s", _code, _str);
 			BX_TRACE("0x%08x: %s", _code, _str);
+			BX_UNUSED(_code, _str);
 			abort();
 			abort();
 		}
 		}
 
 

+ 1 - 0
src/renderer_d3d9.cpp

@@ -362,6 +362,7 @@ namespace bgfx
 				fmt.m_supported = SUCCEEDED(m_d3d9->CheckDeviceFormat(m_adapter, m_deviceType, adapterFormat, fmt.m_usage, fmt.m_type, fmt.m_fmt) );
 				fmt.m_supported = SUCCEEDED(m_d3d9->CheckDeviceFormat(m_adapter, m_deviceType, adapterFormat, fmt.m_usage, fmt.m_type, fmt.m_fmt) );
 				const char* fourcc = (const char*)&fmt.m_fmt;
 				const char* fourcc = (const char*)&fmt.m_fmt;
 				BX_TRACE("\t%2d: %c%c%c%c %s", ii, fourcc[0], fourcc[1], fourcc[2], fourcc[3], fmt.m_supported ? "supported" : "");
 				BX_TRACE("\t%2d: %c%c%c%c %s", ii, fourcc[0], fourcc[1], fourcc[2], fourcc[3], fmt.m_supported ? "supported" : "");
+				BX_UNUSED(fourcc);
 			}
 			}
 
 
 			m_instancing = false
 			m_instancing = false

+ 1 - 0
src/renderer_gl.cpp

@@ -222,6 +222,7 @@ namespace bgfx
 				, toString(_severity)
 				, toString(_severity)
 				, _message
 				, _message
 				);
 				);
+		BX_UNUSED(_source, _type, _id, _severity, _message);
 	}
 	}
 #endif // BGFX_CONFIG_RENDERER_OPENGL
 #endif // BGFX_CONFIG_RENDERER_OPENGL