mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-24 01:30:31 +01:00
remove source warnings
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6091 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
9c15b9dfa9
commit
6f8b0cef96
@ -88,6 +88,7 @@ u32 CGUIContextMenu::insertItem(u32 idx, const wchar_t* text, s32 commandId, boo
|
||||
s.IsSeparator = (text == 0);
|
||||
s.SubMenu = 0;
|
||||
s.CommandId = commandId;
|
||||
s.PosY = 0;
|
||||
|
||||
if (hasSubMenu)
|
||||
{
|
||||
|
@ -92,7 +92,9 @@ private:
|
||||
{
|
||||
SMyMaterialEntry ()
|
||||
: Texture1FileName("null"), Texture2FileName("null"),
|
||||
Texture1(0), Texture2(0), MaterialType(video::EMT_SOLID) {}
|
||||
Texture1(0), Texture2(0), MaterialType(video::EMT_SOLID) {
|
||||
Header.Name[0] = 0;
|
||||
}
|
||||
|
||||
SMyMaterialHeader Header;
|
||||
core::stringc Texture1FileName;
|
||||
|
@ -182,6 +182,8 @@ IAnimatedMesh* COBJMeshFileLoader::createMesh(io::IReadFile* file)
|
||||
smoothingGroup=0;
|
||||
else
|
||||
smoothingGroup=core::strtoul10(smooth);
|
||||
|
||||
(void)smoothingGroup; // disable unused variable warnings
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -185,7 +185,7 @@ bool COSOperator::getProcessorSpeedMHz(u32* MHz) const
|
||||
if (file)
|
||||
{
|
||||
char buffer[1024];
|
||||
fread(buffer, 1, 1024, file);
|
||||
(void)fread(buffer, 1, 1024, file);
|
||||
buffer[1023]=0;
|
||||
core::stringc str(buffer);
|
||||
s32 pos = str.find("cpu MHz");
|
||||
|
@ -115,7 +115,9 @@ CTRTextureWire2::CTRTextureWire2(CBurningVideoDriver* driver)
|
||||
void CTRTextureWire2::renderLine ( const s4DVertex *a,const s4DVertex *b, int renderZero) const
|
||||
{
|
||||
int pitch0 = RenderTarget->getDimension().Width << VIDEO_SAMPLE_GRANULARITY;
|
||||
#ifdef USE_ZBUFFER
|
||||
int pitch1 = RenderTarget->getDimension().Width << 2;
|
||||
#endif
|
||||
|
||||
//todo:!
|
||||
int aposx = fill_convention_none(a->Pos.x);
|
||||
|
@ -912,6 +912,12 @@ bool CXMeshFileLoader::parseDataObjectMesh(SXMesh &mesh)
|
||||
s16 uv2type = -1;
|
||||
s16 tangenttype = -1;
|
||||
s16 binormaltype = -1;
|
||||
|
||||
(void)tangentpos; // disable unused variable warnings
|
||||
(void)binormalpos; // disable unused variable warnings
|
||||
(void)tangenttype; // disable unused variable warnings
|
||||
(void)binormaltype; // disable unused variable warnings
|
||||
|
||||
for (j=0; j<dcnt; ++j)
|
||||
{
|
||||
const u32 type = readInt();
|
||||
|
Loading…
Reference in New Issue
Block a user