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:
Andreas Fabri 2016-10-18 09:25:06 +02:00
parent 5ca5877104
commit e2e2df90c5
1 changed files with 1 additions and 1 deletions

View File

@ -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) {