Skip to content

Commit 1739e96

Browse files
authored
Merge pull request #3626 from zanaviska:feature/gcc11-warning-in-edge-drawing
Fix gcc11 warning
2 parents ba5c23c + 0322b46 commit 1739e96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ximgproc/src/edge_drawing.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ void EdgeDrawingImpl::SplitSegment2Lines(double* x, double* y, int noPixels, int
13661366
{
13671367
// Start by fitting a line to MIN_LINE_LEN pixels
13681368
bool valid = false;
1369-
double lastA(0), lastB(0), error;
1369+
double lastA(0), lastB(0), error(0);
13701370
int lastInvert(0);
13711371

13721372
while (noPixels >= min_line_len)

0 commit comments

Comments
 (0)