Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1coPJq-0003Dd-Q7 for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Mar 2017 06:55:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1coPJq-0000d4-D2 for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Mar 2017 06:55:30 +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 1coPJp-0000aO-Ct for pgsql-hackers@postgresql.org; Thu, 16 Mar 2017 06:55:29 +0000 Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1coPJm-0006ny-64 for pgsql-hackers@postgresql.org; Thu, 16 Mar 2017 06:55:28 +0000 Received: by mail-pf0-x235.google.com with SMTP id w189so19961831pfb.0 for ; Wed, 15 Mar 2017 23:55:25 -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=/Vj2WQ0HPTZgvhRV5AzEwUlaMTHupUOKFmQ/RzcOCps=; b=bgv8PWSnNTvEdNmLtu3mjlwjz/oaKH5f1bQa0Qeg9MVauDnOVlYXdST5PoU4Koo2X1 WFkdWk+IQ8HN1QPoeNon/3vczOggTymy9DOsYhvzwbgycLD++cbV6zriCw+mJaC3UuLJ /k7S2Ryk3JO02wrjwQ6ozwsbg1BaMwmOAZPaY= 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=/Vj2WQ0HPTZgvhRV5AzEwUlaMTHupUOKFmQ/RzcOCps=; b=Pdnm14NX2qnJcIThqs8k77/p3BQiML/gQpbzPzRlTy+oXUqCbHiswhvsK/OEeIdY6T i+KNK/p74MIEwPMi1I29d8H1cGaFocWuxvPjcpQZMfPt/V7bcjMRYZjZ2FPAJ34DQjJ5 Gh2EwMDUfax4CIGx1Q/mSasjACBb7pziV44u1I5ynxX5HS6y8ZPAJWaWt1gg+Zw1kpxO n4lzydT2E9p4w1swBbLpcp9il3myQ05Iw+Q5qNjLbiEc3ULvw+zlnAYVDrg//dHVp5NS NuUVOcq1CiE1dXkvbT7C+LdvhKmldc3UX//O8WlkilUSC9tBJx+GSjejcKPyLPORdsSv pg1Q== X-Gm-Message-State: AFeK/H1GZcPK9k1/SfuEDNaSh5luCoZ7Wnsz9H97aVT6kbT0ityTt6ypQGmaT4YimzlARg== X-Received: by 10.98.56.2 with SMTP id f2mr8595955pfa.130.1489647323523; Wed, 15 Mar 2017 23:55:23 -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 w131sm8058282pfd.34.2017.03.15.23.55.21 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 15 Mar 2017 23:55:22 -0700 (PDT) Date: Thu, 16 Mar 2017 02:55:20 -0400 From: Noah Misch To: Aleksander Alekseev Cc: David Steele , PostgreSQL Developers Subject: Re: [PATCH] Suppress Clang 3.9 warnings Message-ID: <20170316065520.GA1976012@tornado.leadboat.com> References: <20170220141239.GD12278@e733.localdomain> <20170313153553.GB2564@e733.localdomain> <20170315022538.GA1723554@tornado.leadboat.com> <20170315090410.GA25568@e733.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170315090410.GA25568@e733.localdomain> 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 This mailing list does not welcome top-post replies. On Wed, Mar 15, 2017 at 12:04:11PM +0300, Aleksander Alekseev wrote: > > This is wrong on platforms that do have strlcpy() in libc. > > If it no too much trouble could you please explain what will happen > on such platforms? Both port.h and a system header will furnish a strlcpy() declaration. The #if you modified exists to avoid that, and your change would make it ineffective for Clang. This will have no symptoms, or it will elicit a warning. > On what platform did you check it? None. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers