]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/submodel.cxx
Interim windows build fix
[flightgear.git] / src / AIModel / submodel.cxx
index cb4dc592c4cc38b9f33b9c0cddf8546935599f7b..b3000f9a39ec6770a5e4776e7e724e6ff5b542bc 100644 (file)
@@ -576,8 +576,11 @@ void FGSubmodelMgr::setData(int id, const string& path, bool serviceable, const
             sm->pitch_offset = new FGXMLAutopilot::InputValue(*prop_root, b ? *b : n);
             if (b) old = true;
 
-            if (old)
+#if defined(ENABLE_DEV_WARNINGS)
+            if (old) {
                 SG_LOG(SG_AI, SG_WARN, "Submodels: <*-offset> is deprecated. Use <offsets> instead");
+            }
+#endif
         }
 
         // Randomness