On 3/19/21 12:26 AM, Tom Lane wrote: > I wrote: >> This is gcc 4.5, but hopefully whatever shuts it up will also work on 4.7. >> I'll work on figuring that out. > > Actually, the problem is pretty obvious after comparing this use > of foreach_delete_current() to every other one. I'm not sure why > the compiler warnings are phrased just as they are, but the fix > I just pushed does make 4.5 happy. >
Thanks! Yeah, that looks obvious. Funny the older compilers noticed this, not the new fancy ones. regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company