fix build warnigns (oddly, gcc shows nothing, despite having -Wall...)

fixes #184
This commit is contained in:
manuelk 2013-06-27 10:10:28 -07:00
parent 11b644a06e
commit aababd42a6
2 changed files with 1 additions and 4 deletions

View File

@ -612,7 +612,7 @@ FarPatchTables::GetNumFaces(int level) const {
PatchArrayVector const & parrays = GetPatchArrayVector();
if (parrays.empty())
return NULL;
return -1;
if (level < 1) {
return parrays.rbegin()->GetNumPatches();

View File

@ -771,8 +771,6 @@ evalGregoryBoundary(float u, float v,
unsigned int im = (i+ivalence-1)%ivalence,
ip = (i+1)%ivalence;
bool isBoundaryNeighbor = false;
int idx_neighbor = valenceTable[2*i + 0 + 1];
int idx_diagonal = valenceTable[2*i + 1 + 1];
int idx_neighbor_p = valenceTable[2*ip + 0 + 1];
@ -781,7 +779,6 @@ evalGregoryBoundary(float u, float v,
int valenceNeighbor = vertexValenceBuffer[idx_neighbor * (2*maxValence+1)];
if (valenceNeighbor < 0) {
isBoundaryNeighbor = true;
boundaryEdgeNeighbors[currNeighbor++] = idx_neighbor;
if (currNeighbor == 1) {
ibefore = i;