Re: pgsql: Fix up misuse of "volatile" in contrib/xml2.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Fix up misuse of "volatile" in contrib/xml2.
Дата
Msg-id 1604720.1752168479@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Fix up misuse of "volatile" in contrib/xml2.  (Jacob Champion <jacob.champion@enterprisedb.com>)
Список pgsql-committers
Jacob Champion <jacob.champion@enterprisedb.com> writes:
> On Wed, Jul 9, 2025 at 8:55 PM Michael Paquier <michael@paquier.xyz> wrote:
>> On Wed, Jul 09, 2025 at 11:49:55AM -0400, Tom Lane wrote:
>>> Not sure.  Yesterday I saw such warnings from arowana,
>>> boa, dhole, rhinoceros, and shelduck, eg

>> They are all using some gcc 4.X flavor, most with -O2 but not all.

> I think I remember that GCC has had historical problems with tuning
> the false-positive:false-negative rates for `-Wmaybe-uninitialized`.
> It's not super surprising to me that later versions aren't always
> better at seeing specific problems, especially if users were
> complaining that an earlier version was too sensitive...

Yeah.  Worth noting also is that even the machines that were
complaining were warning about just a subset of the xpath.c functions
that had this problem :-(.  So there's definitely some heuristics
involved, which seems odd for what feels like it ought to be a
pretty black-and-white condition.

            regards, tom lane



В списке pgsql-committers по дате отправления: