From ef1fd62b4bf0947d81e13ef9afc65bb95657eeb4 Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 12 Jan 2016 12:50:58 -0600 Subject: [PATCH] Fix an unused variable in non-developer-warning mode. --- src/Traffic/TrafficMgr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Traffic/TrafficMgr.cxx b/src/Traffic/TrafficMgr.cxx index eeda08ac6..2fe014091 100644 --- a/src/Traffic/TrafficMgr.cxx +++ b/src/Traffic/TrafficMgr.cxx @@ -583,9 +583,9 @@ void FGTrafficManager::finishInit() assert(doingInit); SG_LOG(SG_AI, SG_INFO, "finishing AI-Traffic init"); loadHeuristics(); - +#if defined(ENABLE_DEV_WARNINGS) PerformanceDB* perfDB = globals->get_subsystem(); - +#endif // Do sorting and scoring separately, to take advantage of the "homeport" variable BOOST_FOREACH(FGAISchedule* schedule, scheduledAircraft) { schedule->setScore(); -- 2.39.5