Re: [PATCH] Suppress Clang 3.9 warnings
Tomas Vondra <tomas.vondra@2ndquadrant.com>
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>,
Aleksander Alekseev <a.alekseev@postgrespro.ru>
Cc: pgsql-hackers@postgresql.org
Date: 2017-02-20T15:48:38Z
Lists: 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
Commits
-
Suppress implicit-conversion warnings seen with newer clang versions.
- 8cfeaecfc76a 10.0 landed
- 8433e0b40e0d 9.6.3 landed
- 16e815279135 9.5.7 landed