Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings - Mailing list pgsql-hackers

From Tomas Vondra
Subject Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings
Date
Msg-id a1b06131-f416-bc2a-d48f-d86934b025f4@2ndquadrant.com
Whole thread Raw
In response to Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Stephen Frost
Date:
Subject: Re: [HACKERS] Provide list of subscriptions and publications inpsql's completion
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings