Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6Git-0007Pb-C0 for pgsql-committers@arkaria.postgresql.org; Tue, 19 Mar 2019 15:32:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h6Gis-0007zh-4r for pgsql-committers@arkaria.postgresql.org; Tue, 19 Mar 2019 15:32:14 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6Gir-0007za-7k for pgsql-committers@lists.postgresql.org; Tue, 19 Mar 2019 15:32:14 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6Gio-0008O6-8S for pgsql-committers@lists.postgresql.org; Tue, 19 Mar 2019 15:32:12 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 7BA6221BD8; Tue, 19 Mar 2019 11:32:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 19 Mar 2019 11:32:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=PT1mf3AXoBRknUi5TYRSysaN/2G 5SvG7vDA7su9iByM=; b=JNS/W2h3/vkgqikuzST3tp9wizJE7OYm9ngr9YbnWb8 URkng755n1biRBhLaoVWDsSuISSYu+l0BBKi017Am+iU6VDGpg0oZrHZcRPAyMWm UXSAYuq+8CLje1pVaU5EPiCJ8CWK8y3wmGXtvuijqYp8iAHgV/xhKmnrshY6Nh+q iG7ZlACNanF9hLn6x00A+x7d93sEAodIbFZaNe+LyB6pj/d1D0gVSrpM+3FV3yI7 bPi4CNuPjFVWRvkc1ZeCUtwQHZ44nBGTPEpDybWeOcd4js8FUWMByBMgGOHwyDU2 w/Ur++Py72wFKD7+UPggZz+PFGWYagqmVxSkJvr2Cbg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=PT1mf3 AXoBRknUi5TYRSysaN/2G5SvG7vDA7su9iByM=; b=2qmj0sDu1PmYcNPmdbEMJh lOVHXrkiAJhSnpzUwNBUMCHD/LjZGaKY0Ztqtv78+HpbvQ1kH9jXQKTADXN8Idiz ue6N2lSt4mNG1Pi11hXvyE2lBDmJYai55gf/IGFDd+6yrTwb9vys2TTUhkf8FeEb BOC7vEF6zrB32wuRzrRWcUPrjc/LUkZRnPR6EgreyWf3yeP4+Ib69pfo/L4AmxsH eFh+PyPHXnVjSwt3Cy+OfEXVizNgQWi6nrkq4TbhsEoPPbs/yBWt835Ui9ZZ8H2H bJi3ZJY6eJcHEytqhU8Xr32MBk2kOgC5Ien3RNAqfNBIpzmhiXiADARBjEb2bOuA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrieeggdejkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughrvghs ucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecukfhppeelke drvddutddrudegtddrudejudenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvghs segrnhgrrhgriigvlhdruggvnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id BC1F4E47A9; Tue, 19 Mar 2019 11:32:06 -0400 (EDT) Date: Tue, 19 Mar 2019 08:32:04 -0700 From: Andres Freund To: Peter Eisentraut Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Add support for collation attributes on older ICU versions Message-ID: <20190319153204.ske4achkx7zsok5u@alap3.anarazel.de> References: <20190318190351.bkgkrgr6frnv3cxr@alap3.anarazel.de> <7c37a038-c132-dde9-1a39-5132c628075e@2ndquadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7c37a038-c132-dde9-1a39-5132c628075e@2ndquadrant.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-03-19 09:49:14 +0100, Peter Eisentraut wrote: > 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. Thanks.