pgsql: Don't use #if inside function-like macro arguments.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Don't use #if inside function-like macro arguments.
Date: 2021-07-19 23:20:49
Message-ID: E1m5cZ7-0004OQ-IZ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)sss(dot)pgh(dot)pa(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2021-07-20 00:07:13 pgsql: vacuumdb: Correct comment about --force-index-cleanup.
Previous Message Alvaro Herrera 2021-07-19 21:21:50 pgsql: Make new replication slot test code even less racy