]> granicus.if.org Git - postgresql/commit
Fix compiler warning in rangetypes_spgist.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 18 Nov 2017 21:46:29 +0000 (16:46 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 18 Nov 2017 21:46:29 +0000 (16:46 -0500)
commitc4adfc21cbae47f71624a87008073503308c2393
treebe44bec00f1f872c873d1c443472ec5c9a7b4de6
parent6313995c27f915333cc3c7aad521afda22a7ce48
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
src/backend/utils/adt/rangetypes_spgist.c