From 80a8807c4732696c02407ee7443e07792fd2bdc2 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sat, 5 Mar 2022 20:37:34 +0100 Subject: [PATCH] Fix compiler warnings --- code/AssetLib/LWO/LWOLoader.cpp | 2 +- code/AssetLib/LWO/LWOMaterial.cpp | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/code/AssetLib/LWO/LWOLoader.cpp b/code/AssetLib/LWO/LWOLoader.cpp index 0453cc9c8..c4e85bc50 100644 --- a/code/AssetLib/LWO/LWOLoader.cpp +++ b/code/AssetLib/LWO/LWOLoader.cpp @@ -82,8 +82,8 @@ static const aiImporterDesc desc = { // Constructor to be privately used by Importer LWOImporter::LWOImporter() : mIsLWO2(), - mIsLWO3(), mIsLXOB(), + mIsLWO3(), mLayers(), mCurLayer(), mTags(), diff --git a/code/AssetLib/LWO/LWOMaterial.cpp b/code/AssetLib/LWO/LWOMaterial.cpp index 5e5a11348..4728706db 100644 --- a/code/AssetLib/LWO/LWOMaterial.cpp +++ b/code/AssetLib/LWO/LWOMaterial.cpp @@ -885,17 +885,13 @@ void LWOImporter::LoadNodeData(unsigned int size) { GetS0(valueType, 8); if (valueType == "int") { - uint32_t value; - value = GetU4(); + static_cast(GetU4()); } else if (valueType == "double") { - uint64_t value; - value = GetU8(); + static_cast(GetU8()); } else if (valueType == "vparam") { mFileBuffer += 24; - float value; - value = GetF8(); - + float value = GetF8(); if (attrName == "Diffuse") { surf.mDiffuseValue = value; } else if (attrName == "Specular") {