Merge pull request #1687 from afabri/Mesh_2-avoid_warning-GF

Mesh_2: Initialize to avoid warning
This commit is contained in:
Laurent Rineau 2016-11-18 11:06:03 +01:00 committed by GitHub
commit 34aa752ee7
1 changed files with 3 additions and 1 deletions

View File

@ -581,7 +581,9 @@ public:
} while( fc != fcbegin );
Face_handle fh;
int index;
int index = 0; // Avoids a warning.
// We know that is_edge must return true, and is_edge will assign something to index
// but the compiler does not so it will issue a maybe uninitialized warning
CGAL_assume_code(bool is_edge = )
tr.is_edge(va, v, fh, index);