mirror of https://github.com/CGAL/cgal
We initialize a point to quiet GCC6, although the bool first
should guaranteee that the equality test is only done after that the point got assigned a value.
This commit is contained in:
parent
5ca5877104
commit
e2e2df90c5
|
|
@ -611,7 +611,7 @@ MainWindow::loadEdgConstraints(QString fileName)
|
|||
int n;
|
||||
ifs >> n;
|
||||
|
||||
K::Point_2 p,q, qold;
|
||||
K::Point_2 p,q, qold(0,0); // initialize to avoid maybe-uninitialized warning from GCC6
|
||||
|
||||
CDT::Vertex_handle vp, vq, vqold;
|
||||
while(ifs >> p) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue