Opened 2 years ago

Closed 21 months 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: trunk
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 Changed 2 years ago by strk

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 Changed 2 years ago by dbaston

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 Changed 2 years ago by strk

gcc (Ubuntu 6.3.0-12ubuntu2) 6.3.0 20170406

comment:4 Changed 23 months ago by robe

Milestone: PostGIS 2.3.3PostGIS 2.3.4

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

comment:5 Changed 21 months ago by dbaston

Resolution: duplicate
Status: assignedclosed

Duplicated by #3817

Note: See TracTickets for help on using tickets.