Re: jsonapi: scary new warnings with LTO enabled - Mailing list pgsql-hackers

From Jacob Champion
Subject Re: jsonapi: scary new warnings with LTO enabled
Date
Msg-id CAOYmi+n+DHpaEV5hymhufutTgc+S=+pDQfXEUi4hMAV1eO8aTw@mail.gmail.com
Whole thread Raw
In response to Re: jsonapi: scary new warnings with LTO enabled  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: jsonapi: scary new warnings with LTO enabled
List pgsql-hackers
On Wed, Apr 16, 2025 at 4:04 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Looking through all of the callers of freeJsonLexContext, quite
> a lot of them use local JsonLexContext structs, and probably some
> of them are more performance-critical than these.  So that raises
> the question of why are we seeing warnings for only these call
> sites?

Yeah, I had the same question...

> Maybe there is a more elegant way to suppress them.

Can we brute-force ignore this particular warning site with a #pragma
(suggested in [1])?

--Jacob

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98753



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: jsonapi: scary new warnings with LTO enabled
Next
From: Tom Lane
Date:
Subject: Re: pg_dump: Fix dangling pointer in EndCompressorZstd()