Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1coAMf-0001NG-9A for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Mar 2017 14:57:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1coAMe-00052b-S7 for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Mar 2017 14:57:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1coAMe-00052B-2g for pgsql-hackers@postgresql.org; Wed, 15 Mar 2017 14:57:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1coAMb-0004n4-RX for pgsql-hackers@postgresql.org; Wed, 15 Mar 2017 14:57:23 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v2FEvFbN002873; Wed, 15 Mar 2017 10:57:16 -0400 From: Tom Lane To: Noah Misch cc: Aleksander Alekseev , David Steele , PostgreSQL Developers Subject: Re: [PATCH] Suppress Clang 3.9 warnings In-reply-to: <20170315022538.GA1723554@tornado.leadboat.com> References: <20170220141239.GD12278@e733.localdomain> <20170313153553.GB2564@e733.localdomain> <20170315022538.GA1723554@tornado.leadboat.com> Comments: In-reply-to Noah Misch message dated "Wed, 15 Mar 2017 02:25:38 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2871.1489589835.1@sss.pgh.pa.us> Date: Wed, 15 Mar 2017 10:57:15 -0400 Message-ID: <2872.1489589835@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Noah Misch writes: > On Mon, Mar 13, 2017 at 06:35:53PM +0300, Aleksander Alekseev wrote: >> + * Unfortunately in case of strlcat and strlcpy we can't trust tests >> + * executed by Autotools if Clang > 3.6 is used. > This is wrong on platforms that do have strlcpy() in libc. Didn't you submit a patch to upstream autoconf awhile ago to fix the AC_CHECK_DECLS test for this? Seems like the correct solution is to absorb that fix, either by updating to a newer autoconf release or by carrying our own version of AC_CHECK_DECLS until they come out with one. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers