mirror of
https://github.com/minetest/irrlicht.git
synced 2025-01-27 10:10:21 +01:00
Get rid of gcc warnings.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6005 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
0b92a66c50
commit
6c5ae22d49
@ -786,6 +786,10 @@ void CColorConverter::convert_viaFormat(const void* sP, ECOLOR_FORMAT sF, s32 sN
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
#ifndef _DEBUG
|
||||
default:
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -193,7 +193,7 @@ bool CMS3DMeshFileLoader::load(io::IReadFile* file)
|
||||
|
||||
u8* buffer = new u8[fileSize];
|
||||
size_t read = file->read(buffer, fileSize);
|
||||
if (read != fileSize)
|
||||
if (read != (size_t)fileSize)
|
||||
{
|
||||
delete [] buffer;
|
||||
os::Printer::log("Could not read full file. Loading failed", file->getFileName(), ELL_ERROR);
|
||||
|
Loading…
Reference in New Issue
Block a user