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:
cutealien 2019-12-12 18:04:40 +00:00
parent 0b92a66c50
commit 6c5ae22d49
2 changed files with 5 additions and 1 deletions

View File

@ -786,6 +786,10 @@ void CColorConverter::convert_viaFormat(const void* sP, ECOLOR_FORMAT sF, s32 sN
#endif #endif
} }
break; break;
#ifndef _DEBUG
default:
break;
#endif
} }
} }

View File

@ -193,7 +193,7 @@ bool CMS3DMeshFileLoader::load(io::IReadFile* file)
u8* buffer = new u8[fileSize]; u8* buffer = new u8[fileSize];
size_t read = file->read(buffer, fileSize); size_t read = file->read(buffer, fileSize);
if (read != fileSize) if (read != (size_t)fileSize)
{ {
delete [] buffer; delete [] buffer;
os::Printer::log("Could not read full file. Loading failed", file->getFileName(), ELL_ERROR); os::Printer::log("Could not read full file. Loading failed", file->getFileName(), ELL_ERROR);