Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings
От | Tomas Vondra |
---|---|
Тема | Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings |
Дата | |
Msg-id | a1b06131-f416-bc2a-d48f-d86934b025f4@2ndquadrant.com обсуждение исходный текст |
Ответ на | Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings
|
Список | pgsql-hackers |
On 02/20/2017 04:37 PM, Tom Lane wrote: > Aleksander Alekseev <a.alekseev@postgrespro.ru> writes: >> In theory - could we just always use our internal strl* implementations? > > Hmm, maybe configure's test to see if a declaration has been provided > is going wrong? I notice that anchovy, which is supposedly current > Arch Linux, doesn't think the platform has it: > > checking whether strlcat is declared... no > checking whether strlcpy is declared... no > ... > checking for strlcat... no > checking for strlcpy... no > > But that's using gcc. Perhaps clang behaves differently? > AFAIK it happens because clang treats missing declarations as warnings, which confuses configure: https://bugs.llvm.org//show_bug.cgi?id=20820 regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления: