From: torsten Date: Thu, 20 Aug 2009 09:17:01 +0000 (+0000) Subject: warning fixes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a92955eadec62c596f1fb75f40698d7528343975;p=simgear.git warning fixes --- diff --git a/simgear/scene/model/ModelRegistry.cxx b/simgear/scene/model/ModelRegistry.cxx index 7e32c8f7..9cfff559 100644 --- a/simgear/scene/model/ModelRegistry.cxx +++ b/simgear/scene/model/ModelRegistry.cxx @@ -512,7 +512,7 @@ ModelRegistry::readNode(const string& fileName, ScopedLock lock(readerMutex); // XXX Workaround for OSG plugin bug. - Registry* registry = Registry::instance(); +// Registry* registry = Registry::instance(); ReaderWriter::ReadResult res; CallbackMap::iterator iter = nodeCallbackMap.find(getFileExtension(fileName)); diff --git a/simgear/scene/model/ModelRegistry.hxx b/simgear/scene/model/ModelRegistry.hxx index 998d2f2f..909c9460 100644 --- a/simgear/scene/model/ModelRegistry.hxx +++ b/simgear/scene/model/ModelRegistry.hxx @@ -77,7 +77,7 @@ public: using namespace osg; using namespace osgDB; using osgDB::ReaderWriter; - Registry* registry = Registry::instance(); +// Registry* registry = Registry::instance(); ref_ptr optimizedNode = _cachePolicy.find(fileName, opt); if (!optimizedNode.valid()) { std::string otherFileName = _substitutePolicy.substitute(fileName, diff --git a/simgear/scene/model/animation.cxx b/simgear/scene/model/animation.cxx index 28f89f5e..e62c2675 100644 --- a/simgear/scene/model/animation.cxx +++ b/simgear/scene/model/animation.cxx @@ -347,7 +347,7 @@ struct DoDrawArraysVisitor : public osg::NodeVisitor { using namespace osg; using namespace std; - for (int i = 0; i < geode.getNumDrawables(); ++i) + for (int i = 0; i < (int)geode.getNumDrawables(); ++i) geode.getDrawable(i)->setUseDisplayList(false); } }; diff --git a/simgear/scene/model/shadanim.cxx b/simgear/scene/model/shadanim.cxx index 9f94730d..6c0ad494 100644 --- a/simgear/scene/model/shadanim.cxx +++ b/simgear/scene/model/shadanim.cxx @@ -132,6 +132,7 @@ private: static Mutex cubeMutex; +#if 0 static osg::TextureCubeMap* getOrCreateTextureCubeMap() { @@ -181,6 +182,7 @@ static void create_specular_highlights(osg::Node *node) te->setOperand1_RGB(osg::TexEnvCombine::SRC_COLOR); ss->setTextureAttributeAndModes(0, te, osg::StateAttribute::OVERRIDE | osg::StateAttribute::ON); } +#endif SGShaderAnimation::SGShaderAnimation(const SGPropertyNode* configNode,