Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings

Поиск
Список
Период
Сортировка
От Noah Misch
Тема Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings
Дата
Msg-id 20170316065520.GA1976012@tornado.leadboat.com
обсуждение исходный текст
Ответ на Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings  (Aleksander Alekseev <a.alekseev@postgrespro.ru>)
Ответы Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
This mailing list does not welcome top-post replies.

On Wed, Mar 15, 2017 at 12:04:11PM +0300, Aleksander Alekseev wrote:
> > This is wrong on platforms that do have strlcpy() in libc.
> 
> If it no too much trouble could you please explain what will happen
> on such platforms?

Both port.h and a system header will furnish a strlcpy() declaration.  The #if
you modified exists to avoid that, and your change would make it ineffective
for Clang.  This will have no symptoms, or it will elicit a warning.

> On what platform did you check it?

None.



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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: [HACKERS] Re: new set of psql patches for loading (saving) data from (to) text,binary files
Следующее
От: Ashutosh Sharma
Дата:
Сообщение: Re: [HACKERS] Microvacuum support for Hash Index