Merge pull request #19 from 1ec5/patch-1

Fixes for static analyzer warnings
This commit is contained in:
Mikko Mononen 2018-04-16 10:10:38 +03:00 committed by GitHub
commit 3dd704522f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -872,7 +872,6 @@ void tessMeshCheckMesh( TESSmesh *mesh )
TESSvertex *v, *vPrev;
TESShalfEdge *e, *ePrev;
fPrev = fHead;
for( fPrev = fHead ; (f = fPrev->next) != fHead; fPrev = f) {
assert( f->prev == fPrev );
e = f->anEdge;
@ -887,7 +886,6 @@ void tessMeshCheckMesh( TESSmesh *mesh )
}
assert( f->prev == fPrev && f->anEdge == NULL );
vPrev = vHead;
for( vPrev = vHead ; (v = vPrev->next) != vHead; vPrev = v) {
assert( v->prev == vPrev );
e = v->anEdge;
@ -902,7 +900,6 @@ void tessMeshCheckMesh( TESSmesh *mesh )
}
assert( v->prev == vPrev && v->anEdge == NULL );
ePrev = eHead;
for( ePrev = eHead ; (e = ePrev->next) != eHead; ePrev = e) {
assert( e->Sym->next == ePrev->Sym );
assert( e->Sym != e );