mirror of https://github.com/CGAL/cgal
Merge pull request #1687 from afabri/Mesh_2-avoid_warning-GF
Mesh_2: Initialize to avoid warning
This commit is contained in:
commit
34aa752ee7
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue