Re: jsonapi: scary new warnings with LTO enabled

Поиск
Список
Период
Сортировка
От Jacob Champion
Тема Re: jsonapi: scary new warnings with LTO enabled
Дата
Msg-id CAOYmi+n+DHpaEV5hymhufutTgc+S=+pDQfXEUi4hMAV1eO8aTw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: jsonapi: scary new warnings with LTO enabled  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: jsonapi: scary new warnings with LTO enabled
Список 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 по дате отправления: