aboutsummaryrefslogtreecommitdiff
path: root/contrib/pageinspect/gistfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-03-26 14:29:29 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2022-03-26 14:29:40 -0400
commit0144c9c7e73dc75f9cd5297c7c380d55927beb75 (patch)
tree0f104d0b1157d2e701643db107d79884df6dd78d /contrib/pageinspect/gistfuncs.c
parent579cef5faf11b63a312691e086415b37d7888b5a (diff)
downloadpostgresql-0144c9c7e73dc75f9cd5297c7c380d55927beb75.tar.gz
postgresql-0144c9c7e73dc75f9cd5297c7c380d55927beb75.zip
Suppress compiler warning in relptr_store().
clang 13 with -Wextra warns that "performing pointer subtraction with a null pointer has undefined behavior" in the places where freepage.c tries to set a relptr variable to constant NULL. This appears to be a compiler bug, but it's unlikely to get fixed instantly. Fortunately, we can work around it by introducing an inline support function, which seems like a good change anyway because it removes the macro's existing double-evaluation hazard. Backpatch to v10 where this code was introduced. Patch by me, based on an idea of Andres Freund's. Discussion: https://postgr.es/m/48826.1648310694@sss.pgh.pa.us
Diffstat (limited to 'contrib/pageinspect/gistfuncs.c')
0 files changed, 0 insertions, 0 deletions