pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix compilation warning in unicode_norm.c
Date: Mon, 12 Oct 2020 11:35:36 +0000
Message-ID: <E1kRw76-0000a4-FZ@gemulon.postgresql.org> (raw)

Fix compilation warning in unicode_norm.c

80f8eb7 has introduced in unicode_norm.c some new code that uses
htonl().  On at least some FreeBSD environments, it is possible to find
that this function is undeclared, causing a compilation warning.  It is
worth noting that no buildfarm members have reported this issue.

Instead of adding a new inclusion to arpa/inet.h, switch to use
the equivalent defined in pg_bswap.h, to benefit from any built-in
function if the compiler has one.

Reported-by: Masahiko Sawada
Discussion: https://postgr.es/m/CA+fd4k7D4b12ShywWj=AbcHZzV1-OqMjNe7RZAu+tgz5rd_11A@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e578c17d81662b4f4f63a2797bc1be64af3c8f93

Modified Files
--------------
src/common/unicode_norm.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)



Message-ID: <E1kRw76-0000a4-FZ@gemulon.postgresql.org>
Permalink:  ../E1kRw76-0000a4-FZ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kRw76-0000a4-FZ@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Fix compilation warning in unicode_norm.c
  In-Reply-To: <E1kRw76-0000a4-FZ@gemulon.postgresql.org>
  References: <E1kRw76-0000a4-FZ@gemulon.postgresql.org>

* 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