]> git.mxchange.org Git - flightgear.git/commitdiff
Fix an unused variable in non-developer-warning mode.
authorJames Turner <zakalawe@mac.com>
Tue, 12 Jan 2016 18:50:58 +0000 (12:50 -0600)
committerJames Turner <zakalawe@mac.com>
Tue, 12 Jan 2016 18:50:58 +0000 (12:50 -0600)
src/Traffic/TrafficMgr.cxx

index eeda08ac63b8a19fa405325221a38aa2dcbffc3f..2fe014091e95425f98fb5fd25402dedfda1aa56b 100644 (file)
@@ -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<PerformanceDB>();
-    
+#endif
     // Do sorting and scoring separately, to take advantage of the "homeport" variable
     BOOST_FOREACH(FGAISchedule* schedule, scheduledAircraft) {
         schedule->setScore();