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

From Thomas Munro
Subject pgsql: Don't use #if inside function-like macro arguments.
Date
Msg-id E1m5cZ7-0004OQ-IZ@gemulon.postgresql.org
Whole thread Raw
List 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@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(-)


pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: Make new replication slot test code even less racy
Next
From: Peter Geoghegan
Date:
Subject: pgsql: vacuumdb: Correct comment about --force-index-cleanup.