pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add support for collation attributes on older ICU versions
Date: Tue, 19 Mar 2019 09:49:14 +0100
Message-ID: <7c37a038-c132-dde9-1a39-5132c628075e@2ndquadrant.com> (raw)
In-Reply-To: <20190318190351.bkgkrgr6frnv3cxr@alap3.anarazel.de>
References: <E1h5QWH-0004aV-Ua@gemulon.postgresql.org>
	<20190318190351.bkgkrgr6frnv3cxr@alap3.anarazel.de>

On 2019-03-18 20:03, Andres Freund wrote:
> I now get this warning:
> 
> /home/andres/src/postgresql/src/backend/utils/adt/pg_locale.c:1680:14: warning: comparison of constant -1 with expression of type 'UColAttribute' is always true [-Wtautological-constant-out-of-range-compare]
>                         if (uattr != -1 && uvalue != -1)
>                             ~~~~~ ^  ~~

I found a bug in that code and restructured it a bit.  It should also
avoid this warning now.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (4+ messages)  latest in thread

Message-ID: <7c37a038-c132-dde9-1a39-5132c628075e@2ndquadrant.com>
Permalink:  ../7c37a038-c132-dde9-1a39-5132c628075e@2ndquadrant.com/
Also on:    postgresql.org/message-id/7c37a038-c132-dde9-1a39-5132c628075e@2ndquadrant.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-committers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, andres@anarazel.de
  Subject: Re: pgsql: Add support for collation attributes on older ICU versions
  In-Reply-To: <7c37a038-c132-dde9-1a39-5132c628075e@2ndquadrant.com>
  References: <E1h5QWH-0004aV-Ua@gemulon.postgresql.org> <20190318190351.bkgkrgr6frnv3cxr@alap3.anarazel.de> <7c37a038-c132-dde9-1a39-5132c628075e@2ndquadrant.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