pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use "foo(void)" for definitions of functions with no parameters.
Date: Wed, 03 Dec 2025 16:56:09 +0000
Message-ID: <E1vQq9B-002ca9-0D@gemulon.postgresql.org> (raw)

Use "foo(void)" for definitions of functions with no parameters.

Standard practice in PostgreSQL is to use "foo(void)" instead of
"foo()", as the latter looks like an "old-style" function
declaration.  Similar changes were made in commits cdf4b9aff2,
0e72b9d440, 7069dbcc31, f1283ed6cc, 7b66e2c086, e95126cf04, and
9f7c527af3.

Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com>
Discussion: https://postgr.es/m/aTBObQPg%2Bps5I7vl%40ip-10-97-1-34.eu-west-3.compute.internal

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9b05e2ec08a3d174accb2a9e1c59e52e94799acc

Modified Files
--------------
src/backend/access/common/heaptuple.c                 | 2 +-
src/backend/access/index/genam.c                      | 2 +-
src/backend/replication/logical/applyparallelworker.c | 2 +-
src/backend/replication/logical/sequencesync.c        | 2 +-
src/backend/replication/logical/slotsync.c            | 2 +-
src/backend/replication/logical/tablesync.c           | 2 +-
src/backend/replication/logical/worker.c              | 4 ++--
src/backend/utils/adt/uuid.c                          | 4 ++--
src/bin/pg_basebackup/pg_createsubscriber.c           | 2 +-
9 files changed, 11 insertions(+), 11 deletions(-)



Message-ID: <E1vQq9B-002ca9-0D@gemulon.postgresql.org>
Permalink:  ../E1vQq9B-002ca9-0D@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vQq9B-002ca9-0D@gemulon.postgresql.org

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Use "foo(void)" for definitions of functions with no parameters.
  In-Reply-To: <E1vQq9B-002ca9-0D@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