pgsql: Fix compiler warning in rangetypes_spgist.c. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix compiler warning in rangetypes_spgist.c.
Date
Msg-id E1eGAwh-0008Or-8v@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix compiler warning in rangetypes_spgist.c.

On gcc 7.2.0, comparing pointer to (Datum) 0 produces a warning.
Treat it as a simple pointer to avoid that; this is more consistent
with comparable code elsewhere, anyway.

Tomas Vondra

Discussion: https://postgr.es/m/99410021-61ef-9a9a-9bc8-f733ece637ee@2ndquadrant.com

Branch
------
REL9_6_STABLE

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

Modified Files
--------------
src/backend/utils/adt/rangetypes_spgist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Merge near-duplicate code in RI triggers.
Next
From: Thomas Munro
Date:
Subject: Re: pgsql: Remove BufFile's isTemp flag.