From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Don't use #if inside function-like macro arguments.
Date: Mon, 19 Jul 2021 23:20:49 +0000
Message-ID: <E1m5cZ7-0004OQ-IZ@gemulon.postgresql.org> (raw)
Don't use #if inside function-like macro arguments.
No concrete problem reported, but in the past it's been known to cause
problems on some compilers so let's avoid doing that.
Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/234364.1626704007%40sss.pgh.pa.us
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/0c08856856f54056ce8db116e9d254fda114c383
Modified Files
--------------
src/backend/storage/file/fd.c | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tmunro@postgresql.org
Subject: Re: pgsql: Don't use #if inside function-like macro arguments.
In-Reply-To: <E1m5cZ7-0004OQ-IZ@gemulon.postgresql.org>
References: <E1m5cZ7-0004OQ-IZ@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox