Re: [HACKERS] [PATCH] Removes uninitialized variable compiler warning

Поиск
Список
Период
Сортировка
От Todd Sedano
Тема Re: [HACKERS] [PATCH] Removes uninitialized variable compiler warning
Дата
Msg-id CAGqMwaDoOm5iB+4_p_YG3cPNDoEH1sLV3s3o82=AkWfmPsseUA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] [PATCH] Removes uninitialized variable compiler warning  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
We can disregard this patch. It appears that PointerGetDatum initializes lenlemm.


On Mon, Mar 20, 2017 at 10:04 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Todd Sedano <tsedano@pivotal.io> writes:
> This patch removes a compiler warning.
> warning: variable 'lenlemm' is uninitialized when used here
> [-Wuninitialized]

Hm, on what compiler?  AFAICS, that parsetext() function hasn't
changed meaningfully since 2007, and nobody complained of
uninitialized-variable warnings in it before.

We're generally willing to try to silence such warnings on mainstream
compilers, but not on weird ones ...

                        regards, tom lane

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] increasing the default WAL segment size
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] increasing the default WAL segment size