Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1coBUr-000565-4v for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Mar 2017 16:09:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1coBUq-0000SI-MC for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Mar 2017 16:09:56 +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 1coBUo-0000Pq-ET for pgsql-hackers@postgresql.org; Wed, 15 Mar 2017 16:09:54 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1coBUg-0006Pd-Q9 for pgsql-hackers@postgresql.org; Wed, 15 Mar 2017 16:09:53 +0000 Received: by mail-pf0-x244.google.com with SMTP id l66so1324065pfl.3 for ; Wed, 15 Mar 2017 09:09:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=OvuI0024Tbi48/Yh+ea8rJ+STdrI2/YVcncinyLVN74=; b=PDah/fzrv0mhdccUYZBFco+9/1Pc/UkzW8jdOdG20kB6HKy6FCEpJe73n8IAVEcRI5 yiAYzkxs7r9KL8JkFr95/hu36fRs/L2siG30RsuareLL1JvDLOczdfZBWWtPU5rCDAGf tvw7WtSuYGpFwupaHUIPt8DHrjC6BJwtY+1qE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=OvuI0024Tbi48/Yh+ea8rJ+STdrI2/YVcncinyLVN74=; b=lqoO6xJW7oFVSLzjJEDyTsj9dUDjC99J/P42u8WTudFyFjFSH4fz7HC9NBMfQmrGWI U3V+dncBKWr0bH+gBLndGg+o1hN5rNfq6xmfNMFpn9+RdH1BfLvwZTb0SoIHgqSkWkcf SfC8dObm2FgwUTq2XzwrVCwmmep1WgepQZPYjAuTgnz0rfZvhwclElge2mvHi99LhD/N ZoCdSndQD5lTZEYu3m380KbUvdM5gKtZ72/cXaujYR5oV3PKxa/m/rXWLObt5p1Is9D5 AaOfxXE8LRi6935UUu3hCH3PHISdRtQkFP74O726wEkJHUieSsJug/gfNGq1cZKy/POq CKpw== X-Gm-Message-State: AFeK/H1KlIHdWxjHVOCVhURb4iy2ZeTsa2s3JUKFP7DFvUqbqE8Zz1MvONz4a9Cgu6oPmQ== X-Received: by 10.98.11.144 with SMTP id 16mr4591730pfl.78.1489594184115; Wed, 15 Mar 2017 09:09:44 -0700 (PDT) Received: from tornado.leadboat.com (c-98-248-47-228.hsd1.ca.comcast.net. [98.248.47.228]) by smtp.gmail.com with ESMTPSA id v9sm5233580pfg.133.2017.03.15.09.09.42 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 15 Mar 2017 09:09:42 -0700 (PDT) Date: Wed, 15 Mar 2017 12:09:40 -0400 From: Noah Misch To: Tom Lane Cc: Aleksander Alekseev , David Steele , PostgreSQL Developers Subject: Re: [PATCH] Suppress Clang 3.9 warnings Message-ID: <20170315160940.GA1961015@tornado.leadboat.com> References: <20170220141239.GD12278@e733.localdomain> <20170313153553.GB2564@e733.localdomain> <20170315022538.GA1723554@tornado.leadboat.com> <2872.1489589835@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2872.1489589835@sss.pgh.pa.us> User-Agent: Mutt/1.5.24 (2015-08-30) X-Pg-Spam-Score: -2.0 (--) 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 On Wed, Mar 15, 2017 at 10:57:15AM -0400, Tom Lane wrote: > 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? Yes. > 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. As you mention upthread, that Autoconf commit is still newer than every Autoconf release. (Last release was 58 months ago.) Altering configure.ac to work around the bug would be reasonable, but it feels heavy relative to the benefit of suppressing some warnings. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers