Re: pgsql: Add support for collation attributes on older ICU versions - Mailing list pgsql-committers

From Peter Eisentraut
Subject Re: pgsql: Add support for collation attributes on older ICU versions
Date
Msg-id 7c37a038-c132-dde9-1a39-5132c628075e@2ndquadrant.com
Whole thread Raw
In response to Re: pgsql: Add support for collation attributes on older ICU versions  (Andres Freund <andres@anarazel.de>)
Responses Re: pgsql: Add support for collation attributes on older ICU versions
List pgsql-committers
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
expressionof 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


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Fix bug in support for collation attributes on older ICUversion
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Fix whitespace