Skip to content

Commit 0322b46

Browse files
authored
Fix gcc11 warning
‘error’ may be used uninitialized
1 parent ba5c23c commit 0322b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ximgproc/src/edge_drawing.cpp

Lines changed: 1 addition & 1 deletion
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)