Opened 10 years ago

Closed 10 years ago

#3051 closed defect (fixed)

ptarray.c:1326:43: warning: 'end' may be used uninitialized in this function

Reported by: strk Owned by: pramsey
Priority: medium Milestone: PostGIS 2.2.0
Component: postgis Version: master
Keywords: Cc:

Description

rev file at 13255
ptarray.c: In function 'ptarray_locate_point':
ptarray.c:1326:43: warning: 'end' may be used uninitialized in this function [-Wmaybe-uninitialized]
  if ( (seg >= (pa->npoints-2)) && p2d_same(&proj, end) )
                                           ^

Change History (3)

comment:1 by pramsey, 10 years ago

Resolution: fixed
Status: newclosed

Fixed up at r13268. Kind of a scary function, that one.

comment:2 by strk, 10 years ago

Resolution: fixed
Status: closedreopened

2.1 seems to be also affected

comment:3 by pramsey, 10 years ago

Resolution: fixed
Status: reopenedclosed

OK, also done at r13275 in 2.1

Note: See TracTickets for help on using tickets.