pgsql: Fix compiler warnings in multivariate MCV code

From: Tomas Vondra <tomas(dot)vondra(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix compiler warnings in multivariate MCV code
Date: 2019-03-30 18:47:34
Message-ID: E1hAJ0w-0006pT-JS@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix compiler warnings in multivariate MCV code

Compiler warnings were observed on gcc 3.4.6 (on gaur).

The assert is unnecessary, as the indexes are uint16 and so always >= 0.

Reported-by: Tom Lane

Branch
------
master

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

Modified Files
--------------
src/backend/statistics/mcv.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2019-03-30 19:19:57 Re: pgsql: Compute XID horizon for page level index vacuum on primary.
Previous Message Tom Lane 2019-03-30 16:48:53 pgsql: Avoid crash in partitionwise join planning under GEQO.