Fixed compile warnings.

This commit is contained in:
Robert Osfield
2005-10-24 13:46:31 +00:00
parent 5374ddaccb
commit fe1536ebd6
9 changed files with 25 additions and 22 deletions

View File

@@ -801,9 +801,8 @@ std::string osgDB::findFileInDirectory(const std::string& fileName,const std::st
}
}
#else
void osgDB::appendPlatformSpecificResourceFilePaths(FilePathList& filepath)
void osgDB::appendPlatformSpecificResourceFilePaths(FilePathList& /*filepath*/)
{
}
#endif

View File

@@ -117,8 +117,8 @@ void ConnectedParticleSystem::drawImplementation(osg::State& state) const
osg::Vec4 pixelSizeVector = osg::CullingSet::computePixelSizeVector(*state.getCurrentViewport(),state.getProjectionMatrix(),state.getModelViewMatrix());
float unitPixelSize = fabs(1.0/(particle->getPosition()*pixelSizeVector));
float pixelSizeOfFirstParticle = unitPixelSize * particle->getCurrentSize();
float desiredGapBetweenDrawnParticles = 50.0f/unitPixelSize;
float desiredGapBetweenDrawnParticles2 = desiredGapBetweenDrawnParticles*desiredGapBetweenDrawnParticles;
//float desiredGapBetweenDrawnParticles = 50.0f/unitPixelSize;
//float desiredGapBetweenDrawnParticles2 = desiredGapBetweenDrawnParticles*desiredGapBetweenDrawnParticles;
unsigned int maxNumParticlesToSkip = 200;
float maxPixelError2 = osg::square(1.0f/unitPixelSize);

View File

@@ -208,7 +208,7 @@ void skip_input_data (j_decompress_ptr cinfo, long num_bytes)
* application must deal with any cleanup that should happen even
* for error exit.
*/
void term_source (j_decompress_ptr cinfo)
void term_source (j_decompress_ptr /*cinfo*/)
{
/* no work necessary here */
}