From 6c5ae22d493b5709dc2a3699d0688bb4d2ce0f59 Mon Sep 17 00:00:00 2001 From: cutealien Date: Thu, 12 Dec 2019 18:04:40 +0000 Subject: [PATCH] Get rid of gcc warnings. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6005 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/CColorConverter.cpp | 4 ++++ source/Irrlicht/CMS3DMeshFileLoader.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/source/Irrlicht/CColorConverter.cpp b/source/Irrlicht/CColorConverter.cpp index 0c76b6ff..64da5bff 100644 --- a/source/Irrlicht/CColorConverter.cpp +++ b/source/Irrlicht/CColorConverter.cpp @@ -786,6 +786,10 @@ void CColorConverter::convert_viaFormat(const void* sP, ECOLOR_FORMAT sF, s32 sN #endif } break; +#ifndef _DEBUG + default: + break; +#endif } } diff --git a/source/Irrlicht/CMS3DMeshFileLoader.cpp b/source/Irrlicht/CMS3DMeshFileLoader.cpp index 1cac26dc..4ad18aa2 100644 --- a/source/Irrlicht/CMS3DMeshFileLoader.cpp +++ b/source/Irrlicht/CMS3DMeshFileLoader.cpp @@ -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);