Re: jsonapi: scary new warnings with LTO enabled

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Jacob Champion <jacob.champion@enterprisedb.com>, pgsql-hackers@lists.postgresql.org
Date: 2025-04-17T15:20:33Z
Lists: pgsql-hackers
Daniel Gustafsson <daniel@yesql.se> writes:
> Agreed, moving to heap allocated structures for these callsites seem much
> better. Something like the attached should be enough I think?

I confirm this silences those warnings on my Fedora 41 box.

I'm content to do it like this, but maybe Jacob wants to
investigate alternatives?

			regards, tom lane



Commits

  1. Allocate JsonLexContexts on the heap to avoid warnings