Re: macos ventura SDK spews warnings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: macos ventura SDK spews warnings
Дата
Msg-id 1618364.1665882000@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: macos ventura SDK spews warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: macos ventura SDK spews warnings
Список pgsql-hackers
I wrote:
> snprintf is required by POSIX going back to SUSv2, so it's pretty darn
> hard to imagine any currently-used platform that hasn't got it.  Even
> my now-extinct dinosaur gaur had it (per digging in backup files).
> I think we could certainly assume its presence in the branches that
> require C99.

After further thought, I think the best compromise is just that:

(1) apply s/sprintf/snprintf/ patch in branches back to v12, where
we began to require C99.

(2) in v11 and back to 9.2, enable -Wno-deprecated if available.

One thing motivating this choice is that we're just a couple
weeks away from the final release of v10.  So I'm hesitant to do
anything that might turn out to be moving the portability goalposts
in v10.  But we're already assuming we can detect -Wno-foo options
correctly in v10 and older (e.g. 4c5a29c0e), so point (2) seems
pretty low-risk.

            regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: macos ventura SDK spews warnings
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: New docs chapter on Transaction Management and related changes