Opened 7 years ago

Closed 7 years ago

#3773 closed defect (duplicate)

‘last_old_id’ may be used uninitialized in function ‘UF_get_collapsed_cluster_ids’

Reported by: strk Owned by: dbaston
Priority: blocker Milestone: PostGIS 2.3.4
Component: postgis Version: master
Keywords: Cc:

Description

lwunionfind.c: In function ‘UF_get_collapsed_cluster_ids’:
lwunionfind.c:165:7: warning: ‘last_old_id’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    if (current_old_id != last_old_id)
       ^

Change History (5)

comment:1 by strk, 7 years ago

Milestone: PostGIS 2.4.0PostGIS 2.3.3

2.3 branch is also affected. Daniel will you look at this before next week ?

comment:2 by dbaston, 7 years ago

Not sure if I'll get to it or not. There's no error here, but it should be possible to restructure it to make the warning go away. Which compiler is producing the error?

comment:3 by strk, 7 years ago

gcc (Ubuntu 6.3.0-12ubuntu2) 6.3.0 20170406

comment:4 by robe, 7 years ago

Milestone: PostGIS 2.3.3PostGIS 2.3.4

push this back if you can get to it before weekend.

comment:5 by dbaston, 7 years ago

Resolution: duplicate
Status: assignedclosed

Duplicated by #3817

Note: See TracTickets for help on using tickets.