Fix gcc11 warning

‘error’ may be used uninitialized
pull/3626/head
zanaviska 1 year ago committed by GitHub
parent ba5c23ce76
commit 0322b4621d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      modules/ximgproc/src/edge_drawing.cpp

@ -1366,7 +1366,7 @@ void EdgeDrawingImpl::SplitSegment2Lines(double* x, double* y, int noPixels, int
{
// Start by fitting a line to MIN_LINE_LEN pixels
bool valid = false;
double lastA(0), lastB(0), error;
double lastA(0), lastB(0), error(0);
int lastInvert(0);
while (noPixels >= min_line_len)

Loading…
Cancel
Save