From 2f9dd38bbe6288a77547822b9080ca0410a0cf2b Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Wed, 4 Mar 2020 18:40:03 -0800 Subject: [PATCH] Silence discard errors --- Runtime/GuiSys/CGuiWidget.cpp | 2 +- Runtime/World/CPlayer.cpp | 2 +- Runtime/World/ScriptLoader.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Runtime/GuiSys/CGuiWidget.cpp b/Runtime/GuiSys/CGuiWidget.cpp index e68fe0ce9..3519aa36f 100644 --- a/Runtime/GuiSys/CGuiWidget.cpp +++ b/Runtime/GuiSys/CGuiWidget.cpp @@ -66,7 +66,7 @@ void CGuiWidget::ParseBaseInfo(CGuiFrame* frame, CInputStream& in, const CGuiWid x74_transform = zeus::CTransform(orient, trans); m_initTransform = x74_transform; ReapplyXform(); - zeus::CVector3f::ReadBig(in); + (void)zeus::CVector3f::ReadBig(in); // Unused in.readUint32Big(); in.readUint16Big(); if (isWorker) { diff --git a/Runtime/World/CPlayer.cpp b/Runtime/World/CPlayer.cpp index aeee85f91..9dc483509 100644 --- a/Runtime/World/CPlayer.cpp +++ b/Runtime/World/CPlayer.cpp @@ -546,7 +546,7 @@ void CPlayer::UpdateMorphBallTransition(float dt, CStateManager& mgr) { switch (x2f8_morphBallState) { case EPlayerMorphBallState::Unmorphing: - GetCollisionPrimitive()->CalculateAABox(GetPrimitiveTransform()).center(); + (void)GetCollisionPrimitive()->CalculateAABox(GetPrimitiveTransform()).center(); ClearForcesAndTorques(); SetAngularVelocityWR(zeus::CAxisAngle()); if (x574_morphTime >= x578_morphDuration || mgr.GetCameraManager()->IsInCinematicCamera()) { diff --git a/Runtime/World/ScriptLoader.cpp b/Runtime/World/ScriptLoader.cpp index 6f1495681..67a21a05d 100644 --- a/Runtime/World/ScriptLoader.cpp +++ b/Runtime/World/ScriptLoader.cpp @@ -2066,7 +2066,7 @@ CEntity* ScriptLoader::LoadDebrisExtended(CStateManager& mgr, CInputStream& in, CScriptDebris::EOrientationType particle2Or = CScriptDebris::EOrientationType(in.readUint32Big()); CAssetId particle3 = in.readUint32Big(); - /*zeus::CVector3f particle3Scale =*/zeus::CVector3f::ReadBig(in); /* Not actually used, go figure */ + /*zeus::CVector3f particle3Scale =*/(void)zeus::CVector3f::ReadBig(in); /* Not actually used, go figure */ CScriptDebris::EOrientationType particle3Or = CScriptDebris::EOrientationType(in.readUint32Big()); bool solid = in.readBool();