Re: Debian 12 gcc warning

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Debian 12 gcc warning
Дата
Msg-id ZO0pbnY3WiYFfqM+@momjian.us
обсуждение исходный текст
Ответ на Re: Debian 12 gcc warning  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Debian 12 gcc warning  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
On Tue, Aug 29, 2023 at 07:30:15AM +0900, Michael Paquier wrote:
> On Mon, Aug 28, 2023 at 03:37:20PM -0400, Bruce Momjian wrote:
> > I don't see a clean way of avoiding the warning except by initializing
> > the array, which seems wasteful.
> 
> Or just initialize the array with a {0}?

Uh, doesn't that set all elements to zero?  See:

    https://stackoverflow.com/questions/2589749/how-to-initialize-array-to-0-in-c

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Only you can decide what is important to you.



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Wrong usage of pqMsg_Close message code?
Следующее
От: Melanie Plageman
Дата:
Сообщение: Re: Eager page freeze criteria clarification