From: James Turner Date: Tue, 12 Jan 2016 18:50:58 +0000 (-0600) Subject: Fix an unused variable in non-developer-warning mode. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ef1fd62b4bf0947d81e13ef9afc65bb95657eeb4;p=flightgear.git Fix an unused variable in non-developer-warning mode. --- 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();