Re: Pointer subtraction with a null pointer - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Pointer subtraction with a null pointer
Date
Msg-id 49360.1648311192@sss.pgh.pa.us
Whole thread Raw
In response to Pointer subtraction with a null pointer  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Pointer subtraction with a null pointer  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
I wrote:
> Several of Andres' buildfarm animals have recently started to whine
> that "performing pointer subtraction with a null pointer has undefined
> behavior" for assorted places in freepage.c.

Ah, sorry, I meant to include a link:

https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=mylodon&dt=2022-03-26%2000%3A02%3A10&stg=make

This code is old, but mylodon wasn't doing that a week ago, so
Andres must've updated the compiler and/or changed its options.
kestrel and olingo are reporting it too, but they're new.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Matthias van de Meent
Date:
Subject: Re: Invalid comment in ParallelQueryMain
Next
From: Justin Pryzby
Date:
Subject: Re: Add LZ4 compression in pg_dump