Content-Length: 259429 | pFad | http://github.com/postgrespro/postgres/commit/a96e2252833542ab8f79eb27a23941ab8cf0d7d1

A8 Fix compiler warning in rangetypes_spgist.c. · postgrespro/postgres@a96e225 · GitHub
Skip to content

Commit a96e225

Browse files
committed
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
1 parent 0d92439 commit a96e225

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/adt/rangetypes_spgist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ spg_range_quad_inner_consistent(PG_FUNCTION_ARGS)
563563
* for lower or upper bounds to be adjacent. Deserialize
564564
* previous centroid range if present for checking this.
565565
*/
566-
if (in->traversalValue != (Datum) 0)
566+
if (in->traversalValue)
567567
{
568568
prevCentroid = DatumGetRangeType(in->traversalValue);
569569
range_deserialize(typcache, prevCentroid,

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/a96e2252833542ab8f79eb27a23941ab8cf0d7d1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy