From 4cbf8ef513f2cc7d99127955e6702df300c5a946 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 14 Apr 2020 12:16:22 -0400 Subject: [PATCH] CParticleElectric: Mark CGlobalRandom instance as maybe unused This has a stateful destructor, so we mark it as unused to silence unused variable warnings. --- Runtime/Particle/CParticleElectric.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Particle/CParticleElectric.cpp b/Runtime/Particle/CParticleElectric.cpp index f2b9ef28b..9c4e4c491 100644 --- a/Runtime/Particle/CParticleElectric.cpp +++ b/Runtime/Particle/CParticleElectric.cpp @@ -513,7 +513,7 @@ void CParticleElectric::BuildBounds() { } bool CParticleElectric::Update(double dt) { - CGlobalRandom gr(x14c_randState); + [[maybe_unused]] CGlobalRandom gr(x14c_randState); bool ret = false; if (x450_25_haveGPSM) {