Re: [HACKERS] GCC 7 warnings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] GCC 7 warnings
Дата
Msg-id 14447.1491841559@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [HACKERS] GCC 7 warnings  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Ответы Re: [HACKERS] GCC 7 warnings
Список pgsql-hackers
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> Possible fixes:

> a) Ignore, hoping GCC will change before final release. (unlikely at
> this point)

> b) Add compiler option to disable this particular warning, worry about
> it later.  (Might be an option for backpatching.)

> c) Expand the target buffer sizes until the warning goes away.  (Sample
> patch attached.)

> d) Replace most of the problematic code with psprintf() and dynamically
> sized buffers.

+1 for (c) as you have it.  Later we might think about selectively
doing (d), but it seems like more work for probably not much benefit.
        regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Adding lfirst_node (was Re: [HACKERS] [sqlsmith] Planner crashon foreign table join)
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: [HACKERS] max_sync_workers_per_subscription is missing in postgresql.conf