pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: Aleksander Alekseev <a.alekseev@postgrespro.ru>
Cc: David Steele <david@pgmasters.net>
Cc: PostgreSQL Developers <pgsql-hackers@postgresql.org>
Subject: Re: [PATCH] Suppress Clang 3.9 warnings
Date: Thu, 16 Mar 2017 02:55:20 -0400
Message-ID: <20170316065520.GA1976012@tornado.leadboat.com> (raw)
In-Reply-To: <20170315090410.GA25568@e733.localdomain>
References: <20170220141239.GD12278@e733.localdomain>
	<alpine.DEB.2.20.1702221532100.22403@lancre>
	<dc2a33c7-a498-c277-592e-30a9ad8c7926@pgmasters.net>
	<20170313153553.GB2564@e733.localdomain>
	<20170315022538.GA1723554@tornado.leadboat.com>
	<20170315090410.GA25568@e733.localdomain>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

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



view thread (18+ messages)  latest in thread

Message-ID: <20170316065520.GA1976012@tornado.leadboat.com>
Permalink:  ../20170316065520.GA1976012@tornado.leadboat.com/
Also on:    postgresql.org/message-id/20170316065520.GA1976012@tornado.leadboat.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: noah@leadboat.com, a.alekseev@postgrespro.ru, david@pgmasters.net
  Subject: Re: [PATCH] Suppress Clang 3.9 warnings
  In-Reply-To: <20170316065520.GA1976012@tornado.leadboat.com>
  References: <20170220141239.GD12278@e733.localdomain> <alpine.DEB.2.20.1702221532100.22403@lancre> <dc2a33c7-a498-c277-592e-30a9ad8c7926@pgmasters.net> <20170313153553.GB2564@e733.localdomain> <20170315022538.GA1723554@tornado.leadboat.com> <20170315090410.GA25568@e733.localdomain> <20170316065520.GA1976012@tornado.leadboat.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox