Re: New string-truncation warnings from GCC 15

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: New string-truncation warnings from GCC 15
Дата
Msg-id 1413298.1758067699@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: New string-truncation warnings from GCC 15  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2025-09-16 18:48:07 -0400, Tom Lane wrote:
>> It's not clear to me how well this approach will play with
>> non-GCC compilers.

> I'd assume we'd do something like

> #if has_attribute(nonstring)
> #define pg_nonstring __attribute__((nonstring))
> #else
> ...
> #define pg_nonstring
> #endif

> I can't really imagine that causing issues for other compilers...

Well, it wouldn't cause build failures, but perhaps it might fail
to silence comparable warnings from other compilers?  This is
hypothetical of course, I don't know of any such case today.

            regards, tom lane



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