Fix compiler warnings

pull/4427/head
Kim Kulling 2022-03-05 20:37:34 +01:00
parent d4527d4e87
commit 80a8807c47
2 changed files with 4 additions and 8 deletions

View File

@ -82,8 +82,8 @@ static const aiImporterDesc desc = {
// Constructor to be privately used by Importer // Constructor to be privately used by Importer
LWOImporter::LWOImporter() : LWOImporter::LWOImporter() :
mIsLWO2(), mIsLWO2(),
mIsLWO3(),
mIsLXOB(), mIsLXOB(),
mIsLWO3(),
mLayers(), mLayers(),
mCurLayer(), mCurLayer(),
mTags(), mTags(),

View File

@ -885,17 +885,13 @@ void LWOImporter::LoadNodeData(unsigned int size) {
GetS0(valueType, 8); GetS0(valueType, 8);
if (valueType == "int") { if (valueType == "int") {
uint32_t value; static_cast<void>(GetU4());
value = GetU4();
} else if (valueType == "double") { } else if (valueType == "double") {
uint64_t value; static_cast<void>(GetU8());
value = GetU8();
} else if (valueType == "vparam") { } else if (valueType == "vparam") {
mFileBuffer += 24; mFileBuffer += 24;
float value; float value = GetF8();
value = GetF8();
if (attrName == "Diffuse") { if (attrName == "Diffuse") {
surf.mDiffuseValue = value; surf.mDiffuseValue = value;
} else if (attrName == "Specular") { } else if (attrName == "Specular") {