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:
engineer_apple 2020-02-22 22:01:57 +00:00
parent 9c15b9dfa9
commit 6f8b0cef96
6 changed files with 15 additions and 2 deletions

@ -88,6 +88,7 @@ u32 CGUIContextMenu::insertItem(u32 idx, const wchar_t* text, s32 commandId, boo
s.IsSeparator = (text == 0); s.IsSeparator = (text == 0);
s.SubMenu = 0; s.SubMenu = 0;
s.CommandId = commandId; s.CommandId = commandId;
s.PosY = 0;
if (hasSubMenu) if (hasSubMenu)
{ {

@ -92,7 +92,9 @@ private:
{ {
SMyMaterialEntry () SMyMaterialEntry ()
: Texture1FileName("null"), Texture2FileName("null"), : 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; SMyMaterialHeader Header;
core::stringc Texture1FileName; core::stringc Texture1FileName;

@ -182,6 +182,8 @@ IAnimatedMesh* COBJMeshFileLoader::createMesh(io::IReadFile* file)
smoothingGroup=0; smoothingGroup=0;
else else
smoothingGroup=core::strtoul10(smooth); smoothingGroup=core::strtoul10(smooth);
(void)smoothingGroup; // disable unused variable warnings
} }
break; break;

@ -185,7 +185,7 @@ bool COSOperator::getProcessorSpeedMHz(u32* MHz) const
if (file) if (file)
{ {
char buffer[1024]; char buffer[1024];
fread(buffer, 1, 1024, file); (void)fread(buffer, 1, 1024, file);
buffer[1023]=0; buffer[1023]=0;
core::stringc str(buffer); core::stringc str(buffer);
s32 pos = str.find("cpu MHz"); 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 void CTRTextureWire2::renderLine ( const s4DVertex *a,const s4DVertex *b, int renderZero) const
{ {
int pitch0 = RenderTarget->getDimension().Width << VIDEO_SAMPLE_GRANULARITY; int pitch0 = RenderTarget->getDimension().Width << VIDEO_SAMPLE_GRANULARITY;
#ifdef USE_ZBUFFER
int pitch1 = RenderTarget->getDimension().Width << 2; int pitch1 = RenderTarget->getDimension().Width << 2;
#endif
//todo:! //todo:!
int aposx = fill_convention_none(a->Pos.x); int aposx = fill_convention_none(a->Pos.x);

@ -912,6 +912,12 @@ bool CXMeshFileLoader::parseDataObjectMesh(SXMesh &mesh)
s16 uv2type = -1; s16 uv2type = -1;
s16 tangenttype = -1; s16 tangenttype = -1;
s16 binormaltype = -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) for (j=0; j<dcnt; ++j)
{ {
const u32 type = readInt(); const u32 type = readInt();