Fix unused variable build warnings (gcc 4.8.2 - Fedora 19)

This commit is contained in:
Manuel Kraemer 2013-12-08 13:47:14 -08:00
parent 57ab6fc1ac
commit a565526977
2 changed files with 2 additions and 1 deletions

View File

@ -498,6 +498,7 @@ initializeShapes( ) {
}
//------------------------------------------------------------------------------
#ifdef calcNormals
static void
calcNormals(OsdHbrMesh * mesh, std::vector<float> const & pos, std::vector<float> & result ) {
@ -526,6 +527,7 @@ calcNormals(OsdHbrMesh * mesh, std::vector<float> const & pos, std::vector<float
for (int i = 0; i < nverts; ++i)
normalize( &result[i*3] );
}
#endif
//------------------------------------------------------------------------------
static void

View File

@ -907,7 +907,6 @@ OsdPtexMipmapTextureLoader::optimizePacking(int maxNumPages,
for (BlockArray::iterator it = _blocks.begin(); it != _blocks.end(); ++it) {
int face = it->index;
uint16_t adjSizeDiffs = 0;
Ptex::Res baseRes = Ptex::Res(it->ulog2, it->vlog2);
for (int edge = 0; edge < 4; ++edge) {
int levelDiff = getLevelDiff(face, edge);
adjSizeDiffs <<= 4;